[Thread Prev][Thread Next][Index]
Re: [ferret_users] Putting text on a figure that a value from a calculation in the script
Hi Paul,
I think that you will find the solution using an embedded _expression_, cf.
http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/variables-xpressions/EMBEDDED-XPRESSIONS?searchterm=immedia
Regards,
Paulo
-------------
On Thu, 2016-01-07 at 11:41 -0700, Paul Goddard wrote:
Hello,
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.
Thanks in advance,
Paul
--
Paul Goddard
PhD Candidate
Department of Geosciences
University of Arizona
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement