[Thread Prev][Thread Next][Index]

Re: [ferret_users] plotting numerical values of all points on map



On Thu, 28 Jul 2005, Audrey Eun wrote:
> Is there a way to plot out all the numerical values of points on a
> map, say temperature for a particular depth and time step for a
> specified region?

Hi Audrey,
	One way would be to use the label command -- for example

plot/i=1:10 1/i
repeat/i=1:10 ( label `i` `1/i` 0 0 0.1 @sr@p2(`i`,`1/i`) )

The backward quotes get the numerical value of the enclosed variable.
Two things to note. 1) If a simple numerical value is used as a plot
label it is safer to precede it with a font or pen selector (@sr or
@p2 for example). 2) The demo above shows that the number of decimal
places varies between labels when the values are not integers. In
cases like this you could use something like
	let v=1/i
	let vlab=int(100*v)/100
	repeat/i=1:10 ( label `i` `1/i` 0 0 0.1 @sr@p2(`i`,`vlab`) )
to show at most 2 digits after the decimal point.

Good luck,
Mick

|!!! Mick.Spillane@noaa.gov !!!|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement