[Thread Prev][Thread Next][Index]

Re: Thick white line for plot



The technique Ansley describes will work, but it might have unintended
consequences if pen 1 is used again in the same Ferret session. To avoid
this, I suggest you use an otherwise-unused pen color for this kind of
change.

If you redefine pen colors several times (i.e. redefine pen 1 as
described here to some other color, and then change it back to black),
unexpected results can occur!

There has been discussion of this point several times over the years. An
example of a pathological set of pen color changes is pasted below
(discussion of 15 nov 2004).

Billy K
- - - - - - - - - - - - - - - - - - - - - - - -
From the users group of 15 nov 2004:

This led to an amusing experiment:

1) Make Jaison's script, test_colors.jnl:

ppl color,$2,$3,$4,$5
plot/i=1:100/over/color=$2/line/nolab sin(3.14*i/100)-$1/100

2) Give the following commands in Ferret:

plot/i=1:100/col=1/line/nolab sin(3.14*i/100) ! initial line
repeat/j=1:100 go test_colors.jnl `j` 3 `j` `100-j` `100-j`

Or for something even stranger:

repeat/j=1:100 go test_colors.jnl `j` 3 `abs(100*randn(j))`
`100-abs(100*randn(j))` `100-abs(100*randn(j))`

Fun with computers ....

----- Original Message -----
From: Ansley Manke <ansley.b.manke@noaa.gov>
Date: Tuesday, June 7, 2005 9:24 am
Subject: Re: Thick white line for plot

> Hi everyone,
> Wendy found the answer to this question, which is to use PPL COLOR 
> to 
> change the color of a pen
> 
> This changes "pen 1" to white.
>   ppl color,1,100,100,100  
> 
> This changes it back to black (pen 1 is the one used for axes and 
> labels, so for most plots, we don't want to leave it defined as white!
>   ppl color,1,0,0,0
> 
> Here's the section from the Users Guide which discusses this.  (In 
> fact, 
> you CAN use different colors for pen number 1, e.g. PPL 
> COLOR,1,20,60,0  
> makes the pen a dark green rather than black.)
> 
> 
> Appendix C Sec2.3  COLOR n, red, green, blue 
> 
> Sets the color of a single color using the RGB color model.  
> Specify 
> with no arguments to reset colors 1 through 6 to their default 
> values. 
> These six colors are used as the line colors in line and contour 
> plots. 
> See "GKS line bundles"  for more on line color and bundles. 
> 
> n color index 
> 
> red The intensity of red, with a value from 0 to 100% 
> 
> green The intensity of green 
> 
> blue The intensity of blue 
> 
> In the present version of PPL+, colors of indices 0 and 1, 
> corresponding 
> to the plot window background and foreground, are restricted to 
> black 
> (intensities all 0) or white (intensities all 100). 
> 
> 
> 
> Wendy Wang wrote:
> 
> >Hi all,
> >
> >I  try to make thick white plot lines, but cannot make it work.
> >I wonder if there is a way that is similar to making fat white 
> contour lines.
> >
> >Thanks in advance for any help.
> >
> >Wendy Wang
> >
> >  
> >
> 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement