[SciPy-user] Using the mouse in gplt ?

eric jones eric at enthought.com
Sun Dec 29 15:49:14 EST 2002


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 at scipy.net [mailto:scipy-user-admin at scipy.net]
On
> Behalf Of baecker at 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 at scipy.net
> > http://www.scipy.net/mailman/listinfo/scipy-user
> >
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user






More information about the SciPy-User mailing list