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

Home » Public Forums » archive » Re: 2 axis of different type
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: 2 axis of different type [message #16493] Thu, 29 July 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Quentin Errera (quentin@bira-iasb.oma.be) writes:

> I'm trying to plot the concentration of a atmospheric molecule (xaxis)
> vs the pressure (yaxis). The pressure axis should be in log. scale. This
> is well done by the command:
>
> PLOT,concentration,pressure,/ylog,yrange=[MAX(pressure),MIN( pressure)] $
>
> ,ystyle=9,position=[0.1,0.1,0.9,0.9]
> After that, I want add an altitude (in km) axis on the right, in LINEAR
> scale. It should be done by:
> AXIS,yaxis=1,ylog=0,yrange=[z1,z2],ystyle=1
> where z1 (respec. z2) is the altitude corresponding to MAX(pressure)
> (respec. MIN(pressure). The result is that the altitude axis is in log.
> scale.
>
> If somone could help me,

Add the SAVE keyword to your AXIS command and all will
be well. :-)

Cheers,

David

P.S. The SAVE keyword forces the !Y.S system variable
to be updated, so that subsequent data put on the plot
is scaled correctly.

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL to C compiler?
Next Topic: Re: IDL date-time routine complaint

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

Current Time: Fri Oct 10 11:17:55 PDT 2025

Total time taken to generate the page: 1.52079 seconds