> On 08.03.06, Guest2 CERT wrote:
>> g.plot([graph.data.file("data.txt", xname=0, y=2),
>> graph.data.file("data.txt", xname=0, y=3)],
>> [graph.style.bar([color.rgb(0.7, 0.3, 0.5)])]
>> )
On Wed, 8 Mar 2006, Andre Wobst apparently wrote:
> You need to use an changeable attribute here. A palette will do, but
> you can also build a changable attribute from a list of colors. See
> 4.3.5 in the FAQ.
I thought this meant I could do:
mystyle =
[pyx.graph.style.bar(barattrs=[pyx.attr.changelist([pyx.color.rgb.red,
pyx.color.rgb.green])])]
g.plot(
pyx.graph.data.list(zip(Xnames,Yvals), xname=1, y=2),
mystyle
)
But I'm wrong. Why?
I know I'm overlooking the obvious.
(The example is just illustrative.)
Thanks,
Alan Isaac
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user