On 10/27/11 6:51 PM, Eric Kangas wrote:
Hi,

I am working on a standard plot function for multiple plots. I would
like to have each plot in a different color to distinguish each
function, and also able to show a legend with the color, and function.

Here is what I have right now:

plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ())



Try something like:

colors=rainbow(len([0,1,..3]))
sum(plot(derivative((f(x), a) , (x,0,2*pi), color = colors[i],label="Plot %d"%i) for i,a in enumerate([0,1,..3]))

Make each curve an individual plot, and then sum them together.

Jason


--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to