Return to Ferret FAQ


Contour with two vertical axes.


Question:

How can I draw two vertical axes on a contour plot?

Example:

[Output Graphic]

Solution:

This is most easily illustrated by example. In the example below we draw two vertical axes -- one labelled from 0 to 6 by .5's, the other from 0 to 60 by 5's. See the PLOT+ Users' Guide (in $FER_DIR/doc) for details on the PPL commands.
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


Last modified: Jan 5, 1998