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

Home » Public Forums » archive » Setting axes range in function graphics
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
Setting axes range in function graphics [message #87765] Wed, 26 February 2014 11:30 Go to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I am embarrassed to ask this simple question, especially since I already asked it a couple of years ago (but I can't locate the question/answer in Google groups).

How does one set the axis range in function graphics? I know you can set the xrange property

IDL> p = plot(indgen(10))
IDL> p.xrange = [2,6]

but how does one do this graphically? If I double click on the plot, or click on the "Properties..." button, I get a list of properties but axis range is not among them. Similarly, if I click on one of the axes I get a list of axis properties but axis range is not among them. There is a "Reset Axis Range" button which is great, if I could ever figure out how to set the axis range in the first place.

Ideally, I would be able set the X/Y ranges using the cursor (i.e. draw a box over the desired plot range), though I don't remember this capability being mentioned in the previous answer.

Thanks, --Wayne
Re: Setting axes range in function graphics [message #87772 is a reply to message #87765] Wed, 26 February 2014 13:46 Go to previous messageGo to next message
Bill Nel is currently offline  Bill Nel
Messages: 31
Registered: October 2010
Member
On Wednesday, February 26, 2014 2:30:51 PM UTC-5, wlandsman wrote:

> Ideally, I would be able set the X/Y ranges using the cursor (i.e. draw a box over the desired plot range), though I don't remember this capability being mentioned in the previous answer.

I believe you'll have to make do with a combination of pan (press and hold the middle mouse button) and zoom (scroll wheel, after optionally selecting a single axis). See the "Graphics Window Interface" section in the online help.
Re: Setting axes range in function graphics [message #87778 is a reply to message #87772] Wed, 26 February 2014 15:52 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Wednesday, February 26, 2014 4:46:35 PM UTC-5, ri...@crd.ge.com wrote:
> On Wednesday, February 26, 2014 2:30:51 PM UTC-5, wlandsman wrote:

>
> I believe you'll have to make do with a combination of pan (press and hold the middle mouse button) and zoom (scroll wheel, after optionally selecting a single axis). See the "Graphics Window Interface" section in the online help.

Actually, "pan' is just what I need - drawing a box to define a new X and Y range. As a Macbook user, I sometimes forget that I have a middle mouse button (Shift + click). Thanks! --Wayne
Re: Setting axes range in function graphics [message #87779 is a reply to message #87778] Wed, 26 February 2014 16:05 Go to previous message
Bill Nel is currently offline  Bill Nel
Messages: 31
Registered: October 2010
Member
On Wednesday, February 26, 2014 6:52:55 PM UTC-5, wlandsman wrote:
> On Wednesday, February 26, 2014 4:46:35 PM UTC-5, ri...@crd.ge.com wrote:
>
>> On Wednesday, February 26, 2014 2:30:51 PM UTC-5, wlandsman wrote:
>
>
>
>>
>
>> I believe you'll have to make do with a combination of pan (press and hold the middle mouse button) and zoom (scroll wheel, after optionally selecting a single axis). See the "Graphics Window Interface" section in the online help.
>
>
>
> Actually, "pan' is just what I need - drawing a box to define a new X and Y range. As a Macbook user, I sometimes forget that I have a middle mouse button (Shift + click). Thanks! --Wayne

I gave in and bought a three-button mouse for mine :-)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bar coordinate shift with cgBarPlot
Next Topic: mpfit with asymmetric errors?

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

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

Total time taken to generate the page: 0.00671 seconds