Linked Questions
17 questions linked to/from How to plot multiple functions on the same figure
-2 votes
2 answers
4k views
How to join points in scatter plot [duplicate]
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 ...
0 votes
1 answer
482 views
How build two graphs in one figure, module Matplotlib [duplicate]
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(...
0 votes
2 answers
161 views
Add extra linear plot in matplotlib [duplicate]
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,...
2 votes
2 answers
3k views
Python : Matplotlib Plotting all data in one plot
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 ...
3 votes
3 answers
3k views
Inline figures in Spyder using multiple separate plt.plot
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 ...
-1 votes
4 answers
2k views
I'm trying to plot two functions on one plot
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 ...
-2 votes
1 answer
1k views
How to separate one graph from the set of multiple graphs on figure
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 ...
0 votes
1 answer
2k views
Plotting multiple images side by side using matplotlib [duplicate]
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
0 votes
3 answers
1k views
Multiple plots on the same graph
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....
1 vote
2 answers
611 views
How to apply different functions to the same plot using matplotlib.pyplot?
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 ...
1 vote
1 answer
517 views
Python Matplotlib how to plot multiple graph in the same figure
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'...
0 votes
2 answers
477 views
Plotting DataFrameGroupBy object in loop gives multiple graphs
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 (...
0 votes
0 answers
289 views
Overlay median values line graph on a barchart of counts by category in python
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 ...
-1 votes
1 answer
136 views
Getting a refreshment in python?
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. ...