[Thread Prev][Thread Next][Index]

Re: contour and color-changing lines?



Here's a very labor-intensive way to make many contour colors:

set dat etopo5
! first 6 plots use the ordinary colors, one at a time:
contour/x=100e:160e/y=40s:10s/lev=(0,0,1,-1)/col=1 rose
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(50,50,1,-1)/col=2 rose
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(100,100,1,-1)/col=3 rose
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(150,150,1,-1)/col=4 rose
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(200,200,1,-1)/col=5 rose
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(250,250,1,-1)/col=6 rose

! no redefine the colors as needed
ppl color,1,0,70,70                      ! blue-green
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(300,300,1,-1)/col=1 rose
ppl color,2,70,70,0                      ! brownish
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(350,350,1,-1)/col=2 rose
ppl color,3,70,0,70                      ! dark magenta
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(400,400,1,-1)/col=3 rose
ppl color,4,50,50,50                     ! gray
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(450,450,1,-1)/col=4 rose
ppl color,5,70,20,50                     ! etc
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(500,500,1,-1)/col=5 rose
ppl color,5,70,40,40                     ! etc
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(500,500,1,-1)/col=5 rose
ppl color,6,40,60,60                     ! etc
contour/over/nolab/x=100e:160e/y=40s:10s/lev=(600,600,1,-1)/col=6 rose

For an journal publication example of a Ferret plot using 7 different 
line colors see the plot on p2 of Kessler (2002):

http://www.pmel.noaa.gov/~kessler/ENSO/2002GL015924.pdf

Making this kind of thing work after converting metafiles to postscript
using Fprint is another task entirely!

I have seen plots made like this become unstable! (On redefining a color
*sometimes* it also redefines earlier occurrences of that color number,
but not always!).

Billy


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement