[Thread Prev][Thread Next][Index]

Re: [ferret_users] Putting text on a figure that a value from a calculation in the script



Hello Paul,

Op do 07 jan 2016 11:41:16 CET schreef Paul:
> Is it possible to add a label/text to a figure that is the value of a
> calculation made in the script prior to plotting. For example, I
> would like to put the value of heat content on my figure where heat
> content is calculated previously in the same plotting script. I hope
> to eliminate the need to change the label text in the plotting script
> each time I tweak the calculation.
> I know that one can define a symbol and have the label place a string
> when called upon, ie
> def sym val = 0
> label "($val)"
> and 0 will be placed on the figure
> 
> ​But this will not work if the defined symbol is an equation and
> wanting to have the answer placed on the figure.
> ... I hope this is clear.

I think defining a variable instead of a symbol would solve this.  Then
Ferret would evaluate it when plotting.  I'm not sure if that would be a
problem in your situation.

Otherwise, use backticks (see documentation where Paulo links to).

Apropos, I found the annotate command useful for adding labels.

Marco

-- 
Laboratoire des Sciences du Climat et l'Environnement (LSCE)
Tel: +33 1 6908 3876
http://www.lsce.ipsl.fr/Pisp/marco.van-hulten/



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

Privacy Policy | Disclaimer | Accessibility Statement