[Thread Prev][Thread Next][Index]

Re: [ferret_users] format of numeric labels: 2.0 x 10^5 and xfor/yfor ?



I can't help Ryo explain how the formatting works, but another solution that produces nice labels is to control the format directly:

plot/set var_name/1e6     ! variable with magnitude 10^6
ppl yfor,(i2,"x10^6")
ppl plot

Billy K

On 28/01/2008, at 5:59 PM, Ryo Furue wrote:

Hi Ferreters,

I'm wondering if I can learn how the formatting machinery underlying
xfor/yfor works.  For example, outputs like "2.0 x 10^5" isn't
covered in the documentation of xfor:
http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/ appendix-b-pplus-guide/COMMAND-DESCRIPTION#_VPID_747

For example, suppose that Ferret prints "2.0 x 10^5" by default
in the vertical axis of a plot by the PLOT command.  When you specify
"ppl yfor,(E8.0)" , you obtain "0.2 x 10^1" instead of
"2.0 x 10^5" . . . (The value 0.2 x 10^1 is even wrong!)
When you use "(1PE8.0)" , you obtain a correct "2. x 10^5".
The F format descriptor seems to be working as in the Fortran
language, but the E and G descriptors seem to show this strange
behavior.

The version of Ferret I use is

        NOAA/PMEL TMAP
        FERRET v6.07
        Linux(g77) 2.4.21-32 - 08/29/07
        28-Jan-08 15:35

Regards,
Ryo



[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement