On Sat, 22 Jul 2006, Sébastien Maret apparently wrote: 
> Is it possible to plot values from an array with PyX ? 

import numpy,pyx
mydata = numpy.random.rand(10,2)
g = pyx.graph.graphxy(width=8)
#read about 'list' at http://pyx.sourceforge.net/manual/module-graph.data.html
g.plot(pyx.graph.data.list(mydata, x=1, y=2))
g.writePDFfile("c:\\temp\\temp.pdf")

hth,
Alan Isaac





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to