Hi Gregory,
On 09.02.06, Gregory Novak wrote:
> 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
Right, the error was, that the data.list style always created a new
defaultstyles instance. And the error message itself is fine: it
occurs when you mix data instances with different defaultstyles
without providing an own style list. It is just unclear how to iterate
the styles in such a case.
Somehow I introduced this bug during some rework in the data handling.
It is now fixed in CVS head (data.py rev 1.46). Thanks a lot for the
report.
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: 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