I (thought I) posted this about two weeks ago but found that it was
(apparently) eaten.  Or at least it doensn't show up when I search the
PyX list archives, although I seem to have gotten a copy from
sourceforge myself (note the appended sourceforge advertisement).  So
I'm confused about whether or not this went out to the list, but in
any case here it is again.

Thanks,
Greg

--------------------------------------------------

Previously, I happily did things like this to get more than one
line or set of symbols onto a PyX plot, with PyX happily changing the
style to accomodate the multiple symbols/lines:

  g=pyx.graph.graphxy(width=10)
pd = [pyx.graph.data.list([(i,i**n) for i in range(10)], x=1, y=2) for n in 
(2,3)] 
  g.plot(pd)
  g.writeEPSfile('file')


However, when I do this now I get the traceback:

/sw/lib/python2.3/site-packages/pyx/graph/graph.py in plot(self, data, styles)
    145                     styles = d.defaultstyles
    146                 elif styles != d.defaultstyles:
--> 147                     raise RuntimeError("defaultstyles differ")
    148         plotitems = []
    149         for d in usedata:

RuntimeError: defaultstyles differ


This is using PyX 0.8.1 through Fink on OSX.  

I see what's going on, and that to fix it I just need to put a plot
style in the g.plot() call, but I'm wondering why the behavior
changed, and if it can be made to accomodate the usage that previously
worked.


Thanks,
Greg


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to