Hello, I have gnuplot installed, that I use outside of SciPy with the mouse enabled (I can click inside the gnuplot frame and do things like zoom, rotate, etc). But when I use it through SciPy, the mouse is not enabled. Does anyone know how to enable the mouse in gplt plot windows ? Yann
Hi, to answer your question partially: you have to issue the command "set mouse" to gnuplot (as first command you send to gnuplot). However, I don't know how to do this within scipy.plt. Alternatively, you might consider IPython, http://www-hep.colorado.edu/~fperez/ipython/ which I would highly recommend for interactive work. Just start it with the numeric profile, ipython -profile numeric and then at the prompt do (for example) g("plot sin(x)") Arnd On Sun, 29 Dec 2002, Yann Le Du wrote:
Hello,
I have gnuplot installed, that I use outside of SciPy with the mouse enabled (I can click inside the gnuplot frame and do things like zoom, rotate, etc). But when I use it through SciPy, the mouse is not enabled. Does anyone know how to enable the mouse in gplt plot windows ?
Yann
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
You can send raw gnuplot commands to a plot object like so:
from scipy import gplt gplt.plot((1,2,3)) q=gplt.current() q <scipy.gplt.new_plot.Plot instance at 0x01BE0A80> q._send('set mouse;')
eric ---------------------------------------------- eric jones 515 Congress Ave www.enthought.com Suite 1614 512 536-1057 Austin, Tx 78701
-----Original Message----- From: scipy-user-admin@scipy.net [mailto:scipy-user-admin@scipy.net] On Behalf Of baecker@physik.tu-dresden.de Sent: Sunday, December 29, 2002 12:17 PM To: SciPy User Subject: Re: [SciPy-user] Using the mouse in gplt ?
Hi,
to answer your question partially: you have to issue the command "set mouse" to gnuplot (as first command you send to gnuplot). However, I don't know how to do this within scipy.plt.
Alternatively, you might consider IPython, http://www-hep.colorado.edu/~fperez/ipython/ which I would highly recommend for interactive work. Just start it with the numeric profile, ipython -profile numeric and then at the prompt do (for example) g("plot sin(x)")
Arnd
On Sun, 29 Dec 2002, Yann Le Du wrote:
Hello,
I have gnuplot installed, that I use outside of SciPy with the mouse enabled (I can click inside the gnuplot frame and do things like zoom, rotate, etc). But when I use it through SciPy, the mouse is not enabled. Does anyone know how to enable the mouse in gplt plot windows ?
Yann
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
On Sun, 29 Dec 2002, eric jones wrote:
You can send raw gnuplot commands to a plot object like so:
from scipy import gplt gplt.plot((1,2,3)) q=gplt.current() q <scipy.gplt.new_plot.Plot instance at 0x01BE0A80> q._send('set mouse;')
eric
Thank you : it works for me if I first send 'set mouse' BEFORE I use gplt.plot(). I found this thanks to Arnd's email, saying that 'set mouse' should be sent as the first command. Many thanks for that great tip ! Yann
On Sun, 29 Dec 2002 baecker@physik.tu-dresden.de wrote:
Hi,
to answer your question partially: you have to issue the command "set mouse" to gnuplot (as first command you send to gnuplot). However, I don't know how to do this within scipy.plt.
I used some of your infos with Eric Jones infos and succeeded ! The thing is to send 'set mouse' first, as you noted. Thanks for the help ! And I do use IPython, only I use it in the -p scipy mode and I wished to use scipy's gplt command, so I'm happy now ! Yann
Alternatively, you might consider IPython, http://www-hep.colorado.edu/~fperez/ipython/ which I would highly recommend for interactive work. Just start it with the numeric profile, ipython -profile numeric and then at the prompt do (for example) g("plot sin(x)")
participants (3)
-
baecker@physik.tu-dresden.de -
eric jones -
Yann Le Du