Re: axis ystyle=0 double rounding problem [message #64855] |
Thu, 22 January 2009 06:08 |
Joost Aan de Brugh
Messages: 16 Registered: July 2008
|
Junior Member |
|
|
On Jan 21, 4:43 pm, David Fanning <n...@dfanning.com> wrote:
> Joost Aan de Brugh writes:
>
>> Does anyone knows an example in which it makes sense to use this axis-
>> command with the 1-bit not set?
>
> Well, when you don't particularly care if the axis auto-scales.
> Most of the time when I use the axis command I am using it to
> create a second axis, not one identical to the first. I may
> have no reason to exactly scale the second axis.
>
> I think your problems come about because you are doing
> two PLOT commands. The normal procedure would be to do
> one PLOT command, then set your second axis (using the SAVE
> keyword), then OPLOT onto that second axis. See this article:
>
> http://www.dfanning.com/tips/another_yaxis.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Hello David,
So it means that 'axis' becomes a 100% worthy plot command when you
use /Save (So /Save means "Yes, save the !y.crange")? And then use
yrange for the range. And it was the range that made me use another
'plot' command in my real implementation. Thanks, now I can tidy up my
code (if still possible).
Regards,
Joost
|
|
|
Re: axis ystyle=0 double rounding problem [message #64861 is a reply to message #64855] |
Wed, 21 January 2009 07:43  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Joost Aan de Brugh writes:
> Does anyone knows an example in which it makes sense to use this axis-
> command with the 1-bit not set?
Well, when you don't particularly care if the axis auto-scales.
Most of the time when I use the axis command I am using it to
create a second axis, not one identical to the first. I may
have no reason to exactly scale the second axis.
I think your problems come about because you are doing
two PLOT commands. The normal procedure would be to do
one PLOT command, then set your second axis (using the SAVE
keyword), then OPLOT onto that second axis. See this article:
http://www.dfanning.com/tips/another_yaxis.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|