[Thread Prev][Thread Next][Index]

Re: labels



> I have a very simple question, How can I make a salinity fill plot with 0.1 psu step (like fill/level=(33,38,0.1) ...), and only show the legend every 0.5 psu in the colorbar.

Hi Gabriel -

One way is to cheat, by using overlaid viewports:

! first make a plot with the colorbar you want:
set vi full			! standard predefined viewport
fill/lev=(33,38,.5,-3) salinity

! now overlay a plot with the color scheme you want, but omit the colorbar:
define vi/x=0,1/y=0,1 full2	! identical viewport as full, but with a new name
set vi full2
fill/nokey/lev=(33,38,0.1,-3) salinity

! now overlay 0.5 psu contours
contour/over/lev=(33,38,1,-1)(33.5,37.5,1,1) salinity

The disadvantage of this kind of cheating is that it 
by-passes Ferret's normal documentation and so it is
entirely possible to produce an incorrect plot. You
must be careful when doing this kind of thing! As Bob
Dylan said "To live outside the law you must be honest".

Billy K


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement