On Oct 27, 8:09 pm, Jason Grout <[email protected]> wrote:
> 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.

Though for years I've wanted to do

plot([f,g,h],(x,0,1),color=['red','blue','green'])

Don't know how hard it would be to send color to list and check if it
had the right length...  probably not?

- kcrisman

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

Reply via email to