Hi,
Am Donnerstag 29 Mai 2008 23:24 schrieb Tim Head:
> what is the easiest (in terms of remembering how to do it) way people
> can think of taking advantage of color.gradient.Rainbow when plotting
> several things but excluding some colours from the rainbow?
>
> Use case: Presentations, no one can see green or yellow on a projector
> ;]]
I assume you talk of some plot like in
http://pyx.sourceforge.net/examples/graphs/change.html
Well the most easiest thing is, use another gradient, for example
color.gradient.RedBlue.
However personally i prefer something like
#
from pyx import *
colorlist = attr.changelist([color.rgb.red, color.rgb.blue,
color.rgb.black])
g = graph.graphxy(width=8,
x=graph.axis.linear(min=0, max=2),
y=graph.axis.linear(min=0, max=2))
g.plot([graph.data.function("x(y)=y**4", title=r"$x = y^4$"),
graph.data.function("x(y)=y**2", title=r"$x = y^2$"),
graph.data.function("x(y)=y", title=r"$x = y$")],
[graph.style.line([colorlist])])
g.writeEPSfile("Cycle_Palette")
#
and of course this is also easy to remember, if you keep an example of it
around;)
Best Regards,
Stefan
