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

Home » Public Forums » archive » Re: axis ystyle=0 double rounding problem
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
Re: axis ystyle=0 double rounding problem [message #64855] Thu, 22 January 2009 06:08
Joost Aan de Brugh is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems with array elements as parameter in c++ function used via call_external
Next Topic: FLOAT images instead of BYTE ones from IDL Object graphics ?

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

Current Time: Wed Oct 08 20:05:27 PDT 2025

Total time taken to generate the page: 0.00446 seconds