[Thread Prev][Thread Next][Index]

Re: Crossed Axes



Hi Graham,
	While someone may have a tidier solution, here is a way to do it
using the Plotplus commands that underlie Ferret

Example:
def axis/x=-5:5:1 xax ; def axis/y=-5:5:1 yax ; def grid/x=xax/y=yax grd
shade x[g=grd]+y[g=grd]

This produces a plot with the usual box-type axes and x & y axes extending
from -5.5 to 5.5.  To get the cross-type axes you'd like

shade/set x[g=grd]+y[g=grd]
ppl axset,0,0,0,0 ; ppl xlab,@sr  ; ppl ylab,@sr  ; ppl shade

Now you have the shaded plot without any axis values or labels. Then

ppl %xaxis,-5.5,5.5,0.5,0 ; ppl %yaxis,-5.5,5.5,0.5,0

will overlay the axes you wish.

The downside of the above is that the 0.0 values will lie on top of the
other axis.  Maybe there is a way to "fake it out" by adding the axes in
two parts each.  Or you could draw the axes without values

ppl %xaxis,-5.5,5.5,0.5,0,,,,0 ; ppl %yaxis,-5.5,5.5,0.5,0,,,,0

then add the values you want as movable labels

ppl %label,5,-0.5,0,0,0.15,@sr5 ; ppl  %label,-5,-0.5,0,0,0.15,@sr-5  etc

Good luck,
Mick Spillane


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement