NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

lift the restriction of 6 line colors #623

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Reported by steven.c.hankin on 29 Aug 2005 23:51 UTC Change the limit of "6" into a variable, wherever it occurs (if it is not already so). This should include the automated logic that selects line styles in the simplest plot commands such as

yes? PLOT v1,v2,v3,v4,v5,v6,v7,v8

Make the limit changeable with a command like

yes? SET MODE LINE_COLORS 10

The command

yes? PPL COLOR n,r,g,b

could set the colors. The syntax @Cnn etc. would access the colors.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1333

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 12 Jan 2009 19:04 UTC This was done partially in v6.02 or so (interactive and gif modes only) and fully in v6.16+ where it also works in batch mode for postscript and metafiles (see also #1476, batch mode, comments about ppl color)

set mode linecolors:12

ppl color,7,100,50,0 ! orange ppl color,8,0,55,0 ! dark green ppl color,9,60,0,100 ! purple ppl color,10,100,60,70 ! pink ppl color,11,80,70,60 ! tan ppl color,12,100,75,0 ! yellow plot/thick/line/i=1:100 \ cos(i/20), cos(i/24), cos(i/28), cos(i/32), \ cos(i/36), cos(i/40), cos(i/44), cos(i/48), \ cos(i/52), cos(i/56), cos(i/60), cos(i/64)

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 12 Jan 2009 19:06 UTC Here is the example, formatted:

set mode linecolors:12

ppl color,7,100,50,0   ! orange
ppl color,8,0,55,0     ! dark green
ppl color,9,60,0,100   ! purple
ppl color,10,100,60,70 ! pink
ppl color,11,80,70,60  ! tan
ppl color,12,100,75,0  ! yellow
plot/thick/line/i=1:100 \\
 cos(i/20), cos(i/24), cos(i/28), cos(i/32), \\
 cos(i/36), cos(i/40), cos(i/44), cos(i/48), \\
 cos(i/52), cos(i/56), cos(i/60), cos(i/64)