Hi.
I am beginner programmer develping an application in python, that produce a
number of scatterplots and histograms (see www.randomization.org). I tried
many packages (matplotlib, chaco, etc), but none fit the job. I am now using
ploticus. After a quick look Veusz seems to be great option. I am developing
in windows. I did manage to run Veusz in windows with the GUI, but I cant
make the embedded part work.
When I run this code, the program freeze.
import time
import numarray
import veusz.embed as veusz
g = veusz.Embedded('new win')
g.To( g.Add('page') )
g.To( g.Add('graph') )
g.SetData('x', numarray.arange(20))
g.SetData('y', numarray.arange(20)**2)
g.Add('xy')
g.Zoom(0.5)
time.sleep(60)
g.Close()
It cant pass the following line in embeded.py
# wait for command to be executed
# second thread writes a character into the pipe when done
Embedded.pipefromveusz_r.read(1)
Any idea?
Thanks,
Eduardo.