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
1 vote
1 answer
63 views

I'm developing this project in Python using the Tkinter, ElementTree, Numpy, Pandas and Matplotlib packages: ...
PureEncoding's user avatar
0 votes
1 answer
7k views

I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook. When I run the cell, I only get the following and I do not see the bar plot. ...
Brindha Ganesan's user avatar
1 vote
1 answer
499 views

So I have a lot of discrete variables in my dataset and want to visualize them (univariate for now). I went through various articles over the internet and it is suggested that histograms and count ...
ml_learner15's user avatar
0 votes
1 answer
3k views

I am trying to use linear regression that takes two variables "Idade" and "LF" and tries to predict a third one, "DGAF". I'm trying to both do the scatterplot with the ...
João Dionísio's user avatar
1 vote
1 answer
7k views

I have the following training method and I'm confused how may I modify the code to plot a training and validation curve history graph with matplotlib ...
Charith Jayasanka's user avatar
1 vote
1 answer
223 views

I have the CSV's of data. I want to plot the distribution of every attribute or a single one to compare the distribution from other CSV's, Since all attributes are the same but the distribution is ...
Hamza's user avatar
  • 240
0 votes
1 answer
9k views

I have used 4 machine learning models on a task and now I am struggling to plot their bar charts just like shown below in the image. I am printing classification report to get precision, recall etc. ...
Hamza's user avatar
  • 240
1 vote
0 answers
41 views

Most sns plot parameters have names that make somewhat logical sense, For example scatterplot has the x attribute to choose what to plot on the x-axis, and y for y-axis. Similarly kdeplot uses the ...
Amogh's user avatar
  • 11
1 vote
2 answers
287 views

I'm trying to create an autoencoder for the anomaly detection task, but I'm noticing that even if it performs very well on the training set, it starts to stop recreating half of the test set. I tried ...
Fabio's user avatar
  • 53
2 votes
1 answer
620 views

I have a bunch of plots as the one reported below. The data is from measurements performed on different times and different days. In the plot (which is a cumulative distribution function, if that ...
Robyc's user avatar
  • 121
1 vote
1 answer
217 views

I have a dataset where there are stored the measurements of 30 devices. Each device has about 4000 values and it is structured as well: ...
Fabio's user avatar
  • 53
0 votes
1 answer
2k views

I'm trying to plot my test set and test set predictions to check the differences and see how my autoencoder reconstructed the data, but since I have a test set 30x10 I have a huge visualization ...
Fabio's user avatar
  • 53
3 votes
1 answer
39k views

I am trying to convert files stored in a CSV file dataset to grayscale. I run the code which worked on my previous dataset but I now get this error: TypeError: Image data of dtype object cannot be ...
Jack's user avatar
  • 175
7 votes
1 answer
56k views

I am doing a course in edx. While plotting in python, there is always a blank space before the beginning of the plot. In StackExchange, I have found a solution, which is mentioning the axis limit. ...
Faisal's user avatar
  • 71
1 vote
1 answer
276 views

I used Mini-batch gradient descent to train the model, but i am unable to get the proper loss graph. The loss graph is always showed as a straight line. I know there is something wrong but would ...
xstrx's user avatar
  • 11
1 vote
1 answer
1k views

What this "Missing" term means here at each node after split in Image? and also what is at leaf, is this means prediction value? I converted Output variable to 1 and 0. I tried searching on ...
Pramod yadav's user avatar
0 votes
1 answer
255 views

I would like to visualize a large amount of events composed of time serie windows. A typical event would be: Problem is, my events are not synchronized, and so if I plot them all, it would look like: ...
etiennedm's user avatar
  • 1,455
0 votes
1 answer
4k views

I have the a dataframe(df) which has the data of a Job being executed at different time intervals. It includes the following details about the execution of a job: ...
Subhawna's user avatar
0 votes
1 answer
853 views

I was trying this simple code and am unable to find the error I made in it. My code: ...
Sanjay Murali's user avatar
1 vote
0 answers
34 views

How can I get the very same effect of this tutorial in Scikit Documentation with more than 2 classes? Let's say we'll keep only the first dataset (the linear separable one) and substitute it with <...
Riccardo D's user avatar
0 votes
1 answer
6k views

As a beginner, can someone please help me with this? Is there any way to show both pictures in a single cell's output? My output could only display one picture. Thank you for your time and attention! ...
mjf88530's user avatar
0 votes
1 answer
2k views

My code: ...
ash's user avatar
  • 59
0 votes
1 answer
46 views

I wanted to plot a bar graph which shows covid cases reported in different regions in different regions of USA. So here is my code: ...
Anonymous's user avatar
1 vote
1 answer
849 views

I am trying to visualize Time series data is as follows following is my code to plot the data plt.plot(data['date'], data['c_16_avg_a']) ...
Nuser's user avatar
  • 51
1 vote
1 answer
48 views

In the example in this link: https://www.tensorflow.org/tutorials/images/cnn, the performance is over 70%, how can I improve it? What parameters do I need to tweak? Thanks.
data_noobQueen's user avatar
1 vote
1 answer
1k views

I trained multiple CNN models, after that, I saved models details (Like , training/Validation Acc/Loss ) by callbacks by using this codes : ...
AIFahim's user avatar
  • 301
1 vote
0 answers
55 views

The left one image is in jupiter notebook and the right one is from datacamp exercises. Can anyone please let me know why I am getting different results in Jupiter? Used hacker statistics to calculate ...
S.Sharleen's user avatar
1 vote
4 answers
203 views

I am using information gain feature selection technique to get different features subset sizes for my dataset, like so: ...
sums22's user avatar
  • 457
0 votes
2 answers
156 views

When I visualize data using matplotlib it displays very well, but when using Plotly, the data display very bad.
andow's user avatar
  • 1
-1 votes
1 answer
257 views

I would like to plot a graph of actual and predicted values with Python after doing a regression. I used the following codes. However, the text "R^2=0.91" is placed on the right hand side ...
pallidness's user avatar
0 votes
1 answer
845 views

cat = {'A':1, 'B':2, 'C':3} dog = {'A':2, 'B':2, 'C':4} owl = {'A':3, 'B':3, 'C':3} Suppose I have 3 dictionary, each containing pairs of (subcategory, count). How ...
Paw in Data's user avatar
1 vote
1 answer
772 views

I've created a histogram as well as a QQPlot from the residuals of my Regression Model: Mean: 0.35 Standard Deviation: 18.14 Judging from these plots, is it okay to say that my residuals are normally ...
0009's user avatar
  • 31
0 votes
2 answers
117 views

I'm a beginner in the field and I wrote and trained my first Convolutional Neural Network from scratch. I would like to know what types of graphics and parameters a data scientist uses to plot to ...
karalis1's user avatar
  • 471
3 votes
2 answers
6k views

I trained an SVM model with GridSearch ...
AziZ's user avatar
  • 149
2 votes
1 answer
1k views

I'm trying to run the DBSCAN algorithm on this .csv. In the first part of my program I load it and plot the data inside it to check its distribution. This is the first part of the code: ...
JimBelushi2's user avatar
2 votes
1 answer
29k views

I want to create scatterplot of target variable with all the other variables in dataframe. Just like we create pairplot but as pairplot with large number of variables will take lot of time and ...
Strange119's user avatar
0 votes
1 answer
256 views

There is this dataframe: print(df) df.plot.bar(figsize=(10,5),fontsize=14,) plt.title('counts',fontsize=15) plt.show() barh:...
martin's user avatar
  • 329
0 votes
1 answer
616 views

I have the following dataset which I use to plot a line plot. The plot is obtained as the mean of values obtained from the data. I want to add error bars to this ...
Ishan Dutta's user avatar
0 votes
1 answer
1k views

I am trying to plot a time series for a 3d plot. I know that the variable must be made 1d inorder to make it viable for the time series plot. Actually I want the data within a box of latitude and ...
Debashis Paul's user avatar
0 votes
1 answer
4k views

I have two numpy arrays, one with the data for x axis and another one with the data for the y axis. The position i in each array matches the other array. Some values in the x axis array are repeated. ...
MyName's user avatar
  • 137
1 vote
1 answer
2k views

I want to add a condition to the column where attractionName.value_counts() >=165. How can I add a query/filter/condition to a DataFrame before I plot the data. <...
ujwal kandi's user avatar
1 vote
1 answer
181 views

I have three factors, Income(from source A),continuous variable Income(from source B), continuous variable Happiness index,continuous variable Suppose I have 500 samples. My goal is to show the ...
Jie's user avatar
  • 187
1 vote
1 answer
1k views

I have a Dataframe which looks as shown below I am trying to make a line plot for looking at the peaks for both columns (a,b), I have gotten as far as ...
m2rik's user avatar
  • 321
1 vote
1 answer
323 views

I found some materials using the word `pseudocolor plot' and I think that it's just a heatmap. Is there any difference between them?
Jie's user avatar
  • 187
2 votes
1 answer
258 views

I have applied the kMeans Clustering algorithm to a dataframe and have gained cluster labels for each row. I had selected only two features. There are 4 clusters. I want to visualize the datapoints in ...
truth's user avatar
  • 280
2 votes
1 answer
301 views

I have data like as shown below I would like to represent the above tabular data in a visual form. However, the below graph may not work because my real data as 50K unique drug names. So, is there ...
The Great's user avatar
  • 2,775
3 votes
0 answers
598 views

All, I would like to plot the following: I have a binary classification problem where I am using xgboost as my 'model' below: ...
Maths12's user avatar
  • 556
1 vote
1 answer
76 views

I have a dataset containing three years of data which I would like to plot and compare by date and month; but, I am having a hard time with the final result. I am nearly there, but for some strange ...
Andrea Moro's user avatar
0 votes
0 answers
71 views

I am writing code for DBSCAN clustering. I find the eps value which is 0.12 with the help of ...
As if's user avatar
  • 11
4 votes
2 answers
965 views

I have a dataset containing of only one column, using matplotlib I was able to do the scatter plot the following way ...
E199504's user avatar
  • 607