NOAA-PMEL / PyFerret

The PyFerret program and Python module from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
58 stars 22 forks source link

PyFerret does not remember PPL values AXLSZE and TXLSZE #49

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

From Billy:

In making a multi-panel plot, I would usually include specs common to all panels at the top of a script, e.g.: ppl axlint,1,1;ppl axnmtc,4,4;ppl axlsze,.14,.14 These are persistent settings in ordinary Ferret. However, Pyferret remembers the first two but not AXLSZE. That must be specified within each panel (after giving the PLOT/SET command but before PPL PLOT). The same is true for PPL TXLSZE.

karlmsmith commented 6 years ago

Under PyFerret, the default text size is set depending on the window "inch" size, as well as SET WINDOW /TEXTPROM=... value (this option is properly implemented in PyFerret where it is exactly a scaling factor for text; under Ferret a "hack" was used that didn't work well so that option was disabled). So each window in PyFerret has their own "AXLSZE" and "TXLSZE". But most users don't change the "inch" size of the display window (being a PyFerret-only option), but rather just scale the default size as in Ferret.

I could intercepting these PPL commands to reset the default values for all windows. And if one issues a /TEXTPROM=... or /XINCH=... or /YINCH=... option to SET WINDOW it would then go back to current behavior for that window. Just noticed the explanation of /XINCH /YINCH and that of /XPIXEL /YPIXEL are swapped.

karlmsmith commented 6 years ago

This also applies to the PPL LABSET command

karlmsmith commented 6 years ago

Text in online documentation for /XINCH /YINCH and /XPIXEL /YPIXEL for SET WINDOW corrected (swapped).