Linked Questions

-2 votes
2 answers
4k views

import matplotlib.pyplot as plt import numpy as np a=np.arange(1,11) b=np.arange(1,6) c=zip(a,b) d=list(c) for e in d: plt.scatter(e[0],e[1]) I want to plot these points on the ...
Ashish Roy's user avatar
0 votes
1 answer
482 views

How to build two graphs in one figure from the equations below y = (x+2)^2 y = sin(x/2)^2 There is my code: import matplotlib.pyplot as plt import numpy as np from math import sin y = lambda x: sin(...
George's user avatar
  • 1
0 votes
2 answers
161 views

I have this code : x = np.linspace(data2.X.min(), data2.X.max(), 100) f = 0.1 + (0.2 * x) fig, ax = plt.subplots(figsize=(12,8)) ax.plot(x, f, 'r', label='Prediction #1') ax.scatter(data2.X, data2.Y,...
Dendi Handian's user avatar
2 votes
2 answers
3k views

i have the following problem. I have a list of arrays. In every array are a different number of speed values. Now i want to plot all speed values in one plot with the x-axes as the maximum number of ...
Varlor's user avatar
  • 1,491
3 votes
3 answers
3k views

I found the Figure viewer in Spyder 4 very convenient for comparing data of the same kind, say, if the way of analysis is clear and it's just about comparing data. Still, for trying around, it's ...
Lepakk's user avatar
  • 449
-1 votes
4 answers
2k views

This is the code I have so far, I'm trying to set the y limit to be [0,4] and the x limit to be [-2,3]. I can take care of the plot titles myself but I can't figure out how to get these two functions ...
user10525863's user avatar
-2 votes
1 answer
1k views

I will not be able to put the code here because it is my assignment. My program is printing multiple graphs on one plot. Please look at the example figure on the following link: Python: Plot ...
krazzy's user avatar
  • 189
0 votes
1 answer
2k views

l have 21 images stored in my folder path="home/images" that l want to visualize in one figure. how can l do that such that for each plot has a title ? Thank you
vincent75's user avatar
  • 473
0 votes
3 answers
1k views

I want to plot on the same graph one function (data coming from an array) and the line between (xmin,ymin) to (xmax,ymax) of data import numpy as np import matplotlib.pyplot as plt exo_data = np....
Michel Chance's user avatar
1 vote
2 answers
611 views

I am trying to plot a graph on python using the function matplotlib.pyplot and it seems that when I run the codes, they apply but to separate graphs. So when I applied plt.scatter(Lt, T) it showed the ...
Mouza AlShehhi's user avatar
1 vote
1 answer
517 views

This is my code import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style style.use('fivethirtyeight') def animate(i): graph_data = open('data.txt','r'...
Botticelli69's user avatar
0 votes
2 answers
477 views

Following up from a previous question, I am confused by how matplotlib.pyplot works. I have a DataFrameGroupBy object with multiple groups, and I want to make a single figure with multiple functions (...
ubhalasairde's user avatar
0 votes
0 answers
289 views

The following code gives me bar charts that give a count per category. I would like to overlay the median value of a numeric feature per unique category. What would I need to add to the following ...
docproc85's user avatar
-1 votes
1 answer
136 views

I recently started to refresh my python skills that I have been never really working on since I finished university 16 years ago. In my work life I have never been in contact with the python language. ...
Greta Stein's user avatar

15 30 50 per page