From: Michael H. <mh...@al...> - 2009-01-26 06:13:39
|
[I re-added the mailing list to CC.] Matt Ball wrote: > On Jan 24, 2009, at 11:53 PM, Michael Haggerty wrote: >> Matt Ball wrote: >>> [...] However, if I run my python script (which uses >>> gnuplot.py) through x11, I run into two problems: if my gnuplot >>> constructor does not have the persist=1 option, then the plot window >>> disappears as soon as it appears. >> >> Normally, it should only disappear when the Gnuplot instance is >> destroyed by your script (for example, if your script ends). If you >> keep the Gnuplot instance alive then the window should continue to be >> displayed. >> >>> However, when I do use the >>> constructor (e.g. as g = Gnuplot.Gnuplot(persist=1)) then the plot >>> window does persist but it's not interactive! >>> I don't think that I am asking a lot to have an interactive and >>> persistent gnuplot window. How can I do this on my Mac? I am perfectly >>> happy to use something other than AQT or X11 if it gets the job done. >> >> This is more of a gnuplot question than a Gnuplot.py question. > > Thanks, Michael. It just seemed like a Gnuplot.py issue because I can > rotate my plots just fine if I use gnuplot's interactive mode, but not > if I call it though a python script. I haven't had time to play around > with using a normal gnuplot script. I don't know the situation on your platform, but if I start "gnuplot -persist" under Linux with the default terminal type (which is wxt), then I can interact with the graphics window even after the gnuplot command line has been exited. But if I switch to x11, then I can interact with the graphics window as long as the command line is active, but when I exit the command line, then I can't interact with the window anymore. So either use a different terminal type, or keep the gnuplot process running as long as you want to interact with the window. Michael |