[Thread Prev][Thread Next][Index]
Re: label the value of a nunmber variable
hi Gao,
the value of a scaler variable is obtained by enclosing it in
the back-quotes as `variable_name`. Now if you precede this by a ~
character, it'll become a string and you can use it in a label
command. Moreover, you can use the font specification symbols @XY
where XY is the font type to label the value of that variable.
Here's one example:
! make a sine plot
plot/x=0:360 sin(x*3.1415/180)
! we'll label this variable
let corr = 12/190
! label it, using the default font and precision
label 250,0.80,0,0,0.13 ~`corr`
! now if you want a different font
label 250,0.70,0,0,0.13 @TR`corr`
! and the precision as per your need
label 250,0.60,0,0,0.13 @TR`corr,p=-3` !p=-3 means the user wants 3
digits after the decimal point.
For more details about font control, look at
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/Chapter6_Customizing_Plots.htm#_VPINDEXENTRY_762
or precision control, look at
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/Chapter3_Variables_and_Expressions.htm#_VPINDEXENTRY_517
or label command, look at
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/Chapter6_Customizing_Plots.htm#_VPINDEXENTRY_721
----------------------------
ARINDAM CHAKRABORTY
Department of Meteorology
Florida State University
Tallahassee, FL-32306, USA
Tel: +001-850-6443524 (Off)
+001-850-5758550 (Res)
Fax: +001-850-6449642
____________________________
On Sat, 1 Jan 2005, [gb2312] ¸ßÈÙÕä wrote:
> Hi, All
>
> My problem this time is how to label the value of a nunmber variable on the plot?
>
> For example:
> let corr=12/190.
>
> Now, i want to label the value of corr, and how can i achieve it? Thanks!
>
> Gao Rongzhen
>
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement