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 


-------------------------------------------------------
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