From: Simon B. <si...@ar...> - 2006-02-15 01:26:32
|
Here is my script: from pyx import * g = graph.graphxy( width=16, x=graph.axis.log(title="size of training set"), y=graph.axis.log(title="CPU time"), ) d = graph.data.list([ (1000, 0.247), (3000, 5.1), (10000, 27.5), (30000, 4*60+24), ], x=1, y=2) g.plot(d, styles = [graph.style.symbol.diamond]) g.finish() g.writeEPSfile("checkers_cpu") Here is my error: Traceback (most recent call last): File "./mk_graph.py", line 21, in ? g.plot(d, styles = [graph.style.symbol.diamond]) File "/home/users/simonb/site-packages/pyx/graph/graph.py", line 150, in plot plotitems.append(plotitem(self, d, styles)) File "/home/users/simonb/site-packages/pyx/graph/graph.py", line 57, in __init__ for n in s.needsdata: AttributeError: changelist instance has no attribute 'needsdata' ? -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com |