> >> 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?
>
> Almost surely it's not hard.  My guess is that it would involve maybe
> one or two lines of code change, right at the start where it detects if
> you have multiple functions and calls plot for each function.
>
> That's around line 3216 of plot/plot.py, right after this comment:
>
>      #check to see if funcs is a list of functions that will
>      #be all plotted together.
>

Yeah, that's what I sort of figured.  I suppose I should go ahead and
implement it...

Turns out this is already more or less requested at #8164, and I've
added this there.  I've set #6894 to a positive review duplicate as
well.

I still don't think this should be *default* behavior, though, if only
for accessibility reasons (I seem to recall that our default color is
not as much of a problem on that front?).  Also because it can be
quite distracting..

- kcrisman

-- 
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