New graphics: lock zoom in one axis [message #84120] |
Tue, 30 April 2013 03:02  |
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  |
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
|
|
|