[Thread Prev][Thread Next][Index]

Re: [ferret_users] symbols LABZ, LABT as LABX, LABY



Yes, but a caution.

This works fine on the first plot, but subsequent plots on different axes can produce inconsistencies. For example a SHADE plot might need only one of the LABn (e.g. latitude), but a line plot might need two (latitude and longitude, as in Ansley's example). Then the presently- unused LABn will be sitting around with its previous definition. This might lead to an incorrect label if you start using these by hand (Ferret will always know which axes are in use but you might not).

Note that these symbols (and other symbols you might define) can be combined:

label ... ($lab($labnum_y))   ! the latitude label

Billy

On 05 Apr 2011, at 9:43 AM, Ansley Manke wrote:

Hi Patrick-
We do have something of the sort, in a recent addition. What you propose might be even more convenient, but after any plot, there are a set of symbols defined, LABNUM*

For example,

yes? use coads_climatology
yes? plot/x=180/y=0 sst

yes? sh sym sst
yes? sh sym lab*
LAB1 = "FERRET Ver. 6.7"
LAB2 = "NOAA/PMEL TMAP"
LAB3 = "05-APR-2011 09:39:26"
LAB4 = "LONGITUDE : 179E"
LABNUM_X = "4"
LAB5 = "LATITUDE : 1S"
LABNUM_Y = "5"
LAB6 = "DATA SET: coads_climatology"
LABNUM_DSET = "6"
LAB7 = ""
LABNUM_DATITL = "7"
LABY = "Deg C"
LABTIT = "SEA SURFACE TEMPERATURE (Deg C)"



So that you can control the labels on a plot, for instance,

 fill/set var
   go remove_logo
   IF ($labnum_x"0|*>1") THEN go unlabel ($labnum_x)
   IF ($labnum_dset"0|*>1") THEN go unlabel ($labnum_dset)
 ppl fill


This capability is not yet in the documentation, but is available in the last couple of Ferret releases. The full list of these symbols is:

LABNUM_X
LABNUM_Y
LABNUM_Z
LABNUM_T
LABNUM_DSET
LABNUM_ASPECT
LABNUM_YEAR
LABNUM_DATITL
LABNUM_OFFSET
LABNUM_DODS
LABNUM_CALEND



On 4/5/2011 8:37 AM, Brockmann Patrick wrote:
Hi all,

A wish.
It is nice to have defined labels that are set automatically after a plot.
Unfortunatelly some of those symbols depends of the shape of the
plotted variable. It is the case for the symbol LAB4 and LAB5.

If the variable plotted depends XYZ then
a shade command will define LABX, LABY and a last
LAB4 representing the Z axis

If the variable plotted depends XYT then
a shade command will define LABX, LABY and a last
LAB4 representing the T axis

If the variable plotted depends XYZT then
a shade command will define LABX, LABY and LAB4 and LAB5 representing the Z and T axis


So could it be possible to have rather than
symbols LAB4 and LAB5
symbols LABZ and LABT

See: http://dods.ipsl.jussieu.fr/brocksce/ferret_bugs/wish667_labz_labt.jnl

Thanks a lot
Patrick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William S. Kessler
NOAA / Pacific Marine Environmental Laboratory
7600 Sand Point Way NE
Seattle WA 98115 USA

william.s.kessler@xxxxxxxx
Tel: 206-526-6221
Fax: 206-526-6744
Web: http://www.pmel.noaa.gov/people/kessler



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement