Hi, On 08.03.06, Alan G Isaac wrote: > 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.)
Yeah, but you need to use the style on several datasets (i.e. some data instances) to make sense out of the changeable attribute. You can either user several plot commands with the same style instances or use a singe plot instance and a list of datasets as the first parameter (instead of a single dataset as shown in your code). You can even mix that. Use several plot commands with lists of datasets. The styles will then be iterated over all datasets. André -- by _ _ _ Dr. André Wobst / \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ ------------------------------------------------------- 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
