Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to plot many functions on the same graph

Hello, I have a list of functions but I don't know how to put them all on a single graph? I know one way to use 'show' like : show(plot1+plot2),

but is there a way that can cope with a function list or graph obj list? As maybe I'm not sure how many functions to plot.

for a specific exapmle:

var('x y')
f=x^0.5+y
lfs=[]
for i in range(5):
    fs.append(f-i)

now how to show all functions in the lfs list on a single graph?

click to hide/show revision 2
retagged

How to plot many functions on the same graph

Hello, I have a list of functions but I don't know how to put them all on a single graph? I know one way to use 'show' like : show(plot1+plot2),

but is there a way that can cope with a function list or graph obj list? As maybe I'm not sure how many functions to plot.

for a specific exapmle:

var('x y')
f=x^0.5+y
lfs=[]
for i in range(5):
    fs.append(f-i)

now how to show all functions in the lfs list on a single graph?