Skip to main content

Questions tagged [matplotlib]

Matplotlib is a plotting library for Python which may be used interactively or embedded in stand-alone GUIs. Its compact "pyplot" interface is similar to the plotting functions of MATLAB®.

Filter by
Sorted by
Tagged with
2 votes
2 answers
2k views

I have plotted the following map of Philippines according to the population in its regions, using matplotlib.pyplot in Python 3: As can be seen, there's one ...
Kristada673's user avatar
3 votes
2 answers
39k views

I have written this code fig, (axis1, axis2,axis3, axis4)=plt.subplots(2,2,figsize=(10,4)) and I am getting this error ...
Mukul Agrawal's user avatar
1 vote
1 answer
7k views

So I've seen a few answers on here that helped a bit, but my dataset is larger than the ones that have been answered previously. To give a sense of what I'm working with, here's a link to the full ...
Baxter's user avatar
  • 11
2 votes
1 answer
554 views

I have a dataset as below and I want to see 3 days high low average, back from for each day in the same plot. ...
ChunkBMB's user avatar
2 votes
1 answer
2k views

I'm a bit confused about how to go about plotting a 3-axis bar chart: So my jupyter notebook reads in an excel/sheet and I have a table: ...
waffl's user avatar
  • 121
1 vote
1 answer
324 views

I have the below data, I am looking for a effective visualization or graphical method (in Python) to understand how the err is distributed with respect to min and max. ...
deepguy's user avatar
  • 1,471
7 votes
3 answers
307 views

I have a large text dataset clusterized. Each cluster is represented by a centroid of the vectorized texts that belong to it, the number of texts, the created date, and other parameters. I can't plot ...
Federico Caccia's user avatar
1 vote
0 answers
229 views

Let's say I have a df with the below columns ...
Maddy's user avatar
  • 93
0 votes
1 answer
108 views

I have written some code for an SVM and the final output isn’t brilliant. The data is linearly separable so I don’t understand why the data isn’t perfectly separated. Here is the code: ...
Finn Williams's user avatar
1 vote
1 answer
428 views

Below is the code I am trying to execute. x = np.random.normal(size=1000) fig, ax = plt.subplots() H = ax.hist(x, bins=50, alpha=0.5, histtype='stepfilled') Can ...
deepguy's user avatar
  • 1,471
2 votes
1 answer
4k views

I'm interested in exporting a correlation matrix to csv. I've tried using the to.csv functionality, but my matrix is obtained from a function and I get an "object has no attribute 'to_csv'" error. I ...
Luis Cardozo's user avatar
5 votes
2 answers
9k views

Normally when I draw bar plot its simple as ...
Mutafaf's user avatar
  • 133
1 vote
1 answer
726 views

I would like to make a 'bubble' plot, but with rectangular markers. Is it possible to do this in Python? On x-axis should be the day of the week (Mon, Tue, Wed,...), on y-axis - counts, how many ...
Munira's user avatar
  • 167
3 votes
1 answer
10k views

For practicing linear regression, I am generating some synthetic data samples as follows. First it generates 2000 samples with 3 features (represented by x_data). ...
lame_coder's user avatar
2 votes
1 answer
2k views

I'm trying to implement the validation curve based on this SKLearn tutorial. On the site, it shows how based on the parameters the model goes from under- to overfitted, finding the optimal parameter ...
lte__'s user avatar
  • 1,391
6 votes
1 answer
3k views

I have a CSV file which has 150 columns belonging to 7 categories but I want a correlation between 2 categories. The categories are movies and music, 12 and 19 columns respectively. Is there a way ...
Maha Kamal's user avatar

1
3 4
5
6 7
14