National Oceanic and
Atmospheric Administration
United States Department of Commerce

How can I draw a second vertical axis on a contour plot?

How can I draw a second vertical axis on a contour plot?

Question:

How can I draw a contour plot with two different vertical axes?

Example:

Solution:

This is most easily illustrated by example. In the example below we draw twovertical axes -- one labelled from 0 to 6 by .5's, the other from 0 to 60 by5's. See Appendix B in the Ferret Users' Guide for details on the PPLcommands.

yes? LET my_data = SIN(X[X=0:6:.2]) * COS(Y[Y=0:6:.2])

yes? ppl axset 1,1,1,0 ! supress right hand axis
yes? contour/ylim=0:6:.5 my_data
yes? ppl %yaxis 0,60,5,6,1,2,1,+1 ! 0 to 60 by 5's w/ tics on right ("+1)
yes? label 6.5,30,0,90,.15 My new axis

yes? ppl axset 1,1,1,1 ! reset for normal plots