Setting axes range in function graphics [message #87765] |
Wed, 26 February 2014 11:30  |
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 #87778 is a reply to message #87772] |
Wed, 26 February 2014 15:52   |
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  |
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 :-)
|
|
|