[gradsusr] Color Bar

Andrew Revering andy at f5data.com
Wed Nov 10 15:13:11 EST 2010


You have to explicitly define each color and the corresponding value. for
example.

 

*DEFINE THE COLORS HERE

*77 dBZ

'set rgb 88 1 115 103' 

*78 dBZ

'set rgb 89 0 113 101' 

*79 dBZ

'set rgb 90 0 111 99' 

*80 dBZ: 

'set rgb 91 0 109 97'

 

*SET THE CONTOUR LEVELS.VALUES AT WHICH TO DRAW A CONTOUR

'set clevs 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
78 79 80'

 

*ASSIGN THE CONTOUR A COLOR FOR THE LEVELS SET IN CLEVS

'set ccols 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
87 88 89 90 91'

 

 

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Adam Cinderich
Sent: Wednesday, November 10, 2010 2:01 PM
To: gradsusr at gradsusr.org
Subject: [gradsusr] Color Bar

 

Hello:

 

I am plotting seasonal and monthly means for TMPsfc from NARR.  I have a
script that automatically plots all 4 seasons using a control file that
manages all 20 years worth of my data from 1981-2000.

 

When I plot each season, my script contains a line to plot a cbar from a
local library but when you look at each plot, it contains color bars with
varying scales (ex. 270 is between yellow and orange for Winter but 270
isn't even on my Summer plot).

 

Does anybody have a code or know how to create a standard color bar where
the same colors correspond to the same values throughout all of my figures?

 

Thank you,

Adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101110/69d3060d/attachment-0003.html 


More information about the gradsusr mailing list