Ask Your Question

Aeol Kong's profile - activity

2021-03-11 11:26:16 +0200 received badge  Student (source)
2021-03-11 11:26:14 +0200 received badge  Nice Answer (source)
2015-09-30 22:36:16 +0200 received badge  Famous Question (source)
2015-09-30 22:36:16 +0200 received badge  Notable Question (source)
2014-04-22 19:23:16 +0200 received badge  Popular Question (source)
2012-08-09 23:10:48 +0200 received badge  Teacher (source)
2012-08-09 23:10:48 +0200 received badge  Self-Learner (source)
2012-08-08 05:30:10 +0200 answered a question How to plot many functions on the same graph

I've got a solution like this:

var('x')
g = Graphics()
g += plot(x-3, (x,-5,5))
g += plot(x-2, (x, -5, 5))
g.show()
2012-08-08 05:10:57 +0200 asked a question 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?