Re: Rant about axis range defaults using overplot in object graphics [message #91669 is a reply to message #91662] |
Tue, 11 August 2015 16:22   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Tuesday, August 11, 2015 at 9:59:16 AM UTC-6, Dick Jackson wrote:
> On Tuesday, 11 August 2015 07:49:00 UTC-7, Paul van Delst wrote:
>
>> So, I'm happy to use the method alx detailed to prevent the
>> auto-plot-range-adjustment because I know sometimes it is useful.
>>
>> I'm not sure if I can say this without sounding condescending to the OP
>> (I don't mean to be), but this was one of those times with IDL function
>> graphics where I simply weighed my perception anchor and dropped it
>> someplace else.
>
> That's a great image, Paul. And for those whose first language is not Nautical English :-), to "weigh anchor" means to raise it from the sea floor, not to measure its weight.
>
> If you're a fan of technical writing for a *really* wide audience, Randall Munroe helps to show the way:
> http://xkcd.com/1133/ "Up Goer Five"
> http://xkcd.com/thing-explainer/ "Thing Explainer"
>
> Cheers,
> -Dick
>
> Dick Jackson Software Consulting Inc.
> Victoria, BC, Canada --- http://www.d-jackson.com
One tweak to alx's code is to simply set the x/yrange after the first plot. Once you set the range it should keep it constant. For example:
IDL> p = plot([0,1])
IDL> p.xrange = p.xrange
IDL> p.yrange = p.yrange
IDL> p1 = plot([0,2],/overplot)
Man the capstan!
|
|
|