comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » New graphics: lock zoom in one axis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
New graphics: lock zoom in one axis [message #84120] Tue, 30 April 2013 03:02 Go to next message
giorgio.calderone is currently offline  giorgio.calderone
Messages: 1
Registered: April 2013
Junior Member
I'm using the new graphics in IDL 8.2 to produce plots of my data, e.g.

p = plot(mydata_x, mydata_y, ...etc...)

Is there a way to use the mouse wheel to zoom only in one direction
(either the X or Y axis) ?

Thanks,
Giorgio.
Re: New graphics: lock zoom in one axis [message #84241 is a reply to message #84120] Thu, 02 May 2013 15:52 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, April 30, 2013 4:02:21 AM UTC-6, giorgio....@gmail.com wrote:
> I'm using the new graphics in IDL 8.2 to produce plots of my data, e.g.
>
>
>
> p = plot(mydata_x, mydata_y, ...etc...)
>
>
>
> Is there a way to use the mouse wheel to zoom only in one direction
>
> (either the X or Y axis) ?
>
>
>
> Thanks,
>
> Giorgio.

Great idea Giorgio!

I just added this to IDL 8.3. I made it so if you have say the X axis selected, and then you use the mouse wheel, it will only zoom in that direction. Same thing for the Y axis.

For now, as a workaround, you could hold down the shift key and use the left mouse button to draw a zoom box, and just zoom into your desired region. Not perfect, but it will work. Or you could do it programmatically by doing "p.xrange = [0,10]"

Cheers,
Chris
ExelisVIS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: I need some histogram magic - gridding very large dataset
Next Topic: How to display single orbits of satellite data in function graphics?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:15:36 PDT 2025

Total time taken to generate the page: 0.00583 seconds