[Thread Prev][Thread Next][Index]

Re: [ferret_users] Using RGB colors in Pyferret 7.1



Hi Olivier,

This is a bug in the parsing of the COLOR=... specification in the /GRATICULE option.  You first attempt should have worked if we were parsing this correctly.  As a work-around, you could try expanding the number of colors using SET MODE LINECOLORS

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/SET#_VPINDEXENTRY_mode_linecolors

adding your desired color as one of these added colors using PPL COLOR

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/appendix-c-ferret-specific-pplus-enhancements/ENHANCED-COMMANDS-DESCRIPTION#_VPID_758

and then use that color number for the graticule color.  So something like:

SET MODE LINECOLORS 7
PPL COLOR 7,100,20,20
PLOT /COLOR=(60,50,20) /GRATICULE="(DASH,COLOR=7)" I[I=1:50]

But we will get that fixed soon.

Karl

On Fri, Apr 13, 2018 at 4:47 AM, Olivier Marti <olivier.marti@xxxxxxxxxxxx> wrote:

yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR=RED)" I[I=1:50] ! OK

yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR=(100,20,20))" I[I=1:50] ! Wrong
 **ERROR: value out of legal range: (100
          Format is (R,G,B) or (R,G,B,A),where R,G,B,A are integer values 0-100

yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR='(100,20,20)')" I[I=1:50] ! Wrong
 **ERROR: invalid command: COLOR='(100
          Colors are Black, Red, Green, Blue, LightBlue, Purple, and White

yes? PLOT/COLOR=(60,50,20)/GRATICULE="(DASH,COLOR=100,20,20)" I[I=1:50] ! Wrong
STOP FGD_CREATE_TEMP_PEN: null colorobj for icolor

Is there a syntax to use RGB colors everywhere ?

Thanks,

Olivier

-- 
Dr. Olivier Marti  - mailto:olivier.marti@lsce.ipsl.fr
Laboratoire des Sciences du Climat et de l'Environnement
Institut Pierre Simon Laplace
Laboratoire CEA-CNRS-UVSQ  -  UMR 8212
Tel : +33 1 69 08 77 27 - Mob : +33 6 45 36 43 74
Fax : +33 1 69 08 30 73






--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement