NOAA-PMEL / PyFerret

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

show text with custom color lines #106

Closed ACManke closed 2 years ago

ACManke commented 2 years ago

A tiny bug. If we do a SET TEXT/COLOR=, then SHOW TEXT lists the color using the (r,g,b) definition.

yes? set text/color=(0,50,50)/font=helvetica
yes? show text
default
     /FONT=helvetica
     /COLOR= ( 0.0,50.0,50.0) (%RGB)
     /ITALIC=OFF
     /BOLD=OFF
     /ISIZ= 0

IF the color is defined with a value of 100 in anyof the r,g,b numbers, the output overflows. Continuing:

yes? set text/color=(0,100,50)/font=helvetica contour
yes? show text
default
     /FONT=helvetica
     /COLOR= ( 0.0,50.0,50.0) (%RGB)
     /ITALIC=OFF
     /BOLD=OFF
     /ISIZ= 0
 CONTOUR
     /COLOR= ( 0.0,****,50.0) (%RGB)
ACManke commented 2 years ago

This is fixed in fer/gnl/show_pytext_group.F and fer/xeq/xeq_show