Re: 2 axis of different type [message #16493] |
Thu, 29 July 1999 00:00 |
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
|
|
|