Hi,
Am Freitag 18 April 2008 05:13 schrieb Brendon Higgins:
> Thus my question: how can I change the ordering of the key without
> changing the order in which the data is plotted? Is this even possible?
> (Please tell me it is, somehow. I'm not afraid of digging into PyX code
> if I have to. ;-) )
I'm not sure if this is the most elegant way in PyX, but the following
seems to work.
from pyx import *
g = graph.graphxy(width=8)
a = g.plot(graph.data.function("y(x)=sin(x)/x", min=-15, max=15),
[graph.style.line([color.cmyk.Red, style.linestyle.dashed])])
b = g.plot(graph.data.function("y(x)=sin(x)/x", min=-15, max=15),
[graph.style.line([color.cmyk.Black, style.linestyle.solid])])
g.doplot(b)
g.doplot(a)
g.writeEPSfile("function")
Greetings,
Stefan Schenk
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user