NOAA-PMEL/PyFerret

show text with custom color lines

Closed this issue · 1 comments

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)

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