<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">When I do as shown below only one colour is displayed (green) covering the whole temperature range from 288 to 310.<br><br>The color is standard.<br><br>mycolors()<br>'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98 99'<br><br>'d variable'<br>'draw title ...'<br>'quit'<br><br>function mycolors()<br>'set rgb 88 ...'<br>'set rgb 89 ...'<br>'set rgb 90 ...'<br> <br><br>Here is my script:<br><br>'reinit'<br>'sdfopen ssnclimERA-interim10.nc'<br>'set lat -20 20'<br>'set lon 20 60'<br>'set mpdset mres'<br>'set gxout shaded'<br>'set t 1'<br>'run page q1'<br>mycolors()<br>'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98 99'<br>'d t2m'<br>'d u10;v10'<br>'draw title DJF'<br>'run cbarn'<br>'set t 2'<br>'run page q2'<br>mycolors()<br>'set clevs 288 290
292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98 99'<br>'d t2m'<br>'d u10;v10'<br>'draw title MAM'<br>'run cbarn'<br>'set t 3'<br>'run page q3'<br>mycolors()<br>'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98 99'<br>'d t2m'<br>'d u10;v10'<br>'draw title JJA'<br>'run cbarn'<br>'set t 4'<br>'run page q4'<br>mycolors()<br>'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98 99'<br>'d t2m'<br>'d u10;v10'<br>'draw title SON'<br>'run cbarn'<br>'print 2ssnclimERA-interim10.eps'<br>#'!gv ssnclimERA-interim10.eps'<br>'quit'<br>function mycolors()<br>'set rgb 88 1 115 103'<br>'set rgb 89 0 113 101'<br>'set rgb 90 0 111 99'<br>'set rgb 91 0 109 97'<br>'set rgb 92 0 107 95'<br>'set rgb 93 0 105 93'<br>'set rgb 94 0 103 91'<br>'set rgb 95 0 101 89'<br>'set rgb 96 0 99 87'<br>'set rgb 97 0 97 85'<br>'set rgb 98 0 95
83'<br>'set rgb 99 0 93 81'<br>Saiguran Loisulie<br>
Climate Systems Analysis Group<br>
Environmental and Geographical Science Department<br>
University of Cape Town<br>
Private Bag X3<br>
Rondebosch<br>
7701 <br>
SOUTH AFRICA<br>
<br>
CELL 0748 068 230<br><br>--- On <b>Tue, 12/14/10, Muhammad Rahiz <i><muhammad.rahiz@ouce.ox.ac.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Muhammad Rahiz <muhammad.rahiz@ouce.ox.ac.uk><br>Subject: Re: Standard color bar for multiple plots<br>To: "saiguran loisulie" <saiguranloi@yahoo.com><br>Cc: "Muhammad Rahiz" <muhammad.rahiz@ouce.ox.ac.uk>, "gradsusr@gradsusr.org" <gradsusr@gradsusr.org><br>Date: Tuesday, December 14, 2010, 1:57 AM<br><br><div class="plainMail">Try the following;<br><br>mycolors()<br>'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>'set ccols 88 89 90 91 92 93 94 95 96 97 98'<br><br>'d variable'<br>'draw title ...'<br>'quit'<br><br>function mycolors()<br>'set rgb 88 ...'<br>'set rgb 89 ...'<br>'set rgb 90 ...'<br><br><br><br><br><br>Muhammad Rahiz<br>Researcher & DPhil Candidate (Climate Systems &
Policy)<br>School of Geography & the Environment<br>University of Oxford<br><br>On Tue, 14 Dec 2010, saiguran loisulie wrote:<br><br>> I changed it as shown below, but the output is still the same.<br>> <br>> #DEFINE THE COLORS HERE<br>> 'set rgb 88 1 115 103'<br>> 'set rgb 89 0 113 101'<br>> 'set rgb 90 0 111 99'<br>> 'set rgb 91 0 109 97'<br>> 'set rgb 92 0 107 95'<br>> 'set rgb 93 0 105 93'<br>> 'set rgb 94 0 103 91'<br>> 'set rgb 95 0 101 89'<br>> 'set rgb 96 0 99 87'<br>> 'set rgb 97 0 97 85'<br>> 'set rgb 98 0 95 83'<br>> #SET THE CONTOUR LEVELS.VALUES AT WHICH TO DRAW A CONTOUR<br>> 'set clevs 288 290 292 294 296 298 300 302 304 306 308 310'<br>> #ASSIGN THE CONTOUR A COLOR FOR THE LEVELS SET IN CLEVS<br>> 'set ccols 88 89 90 91 92 93 94 95 96 97 98'<br>> <br>> Saiguran Loisulie<br>> Climate Systems Analysis Group<br>> Environmental and Geographical Science Department<br>>
University of Cape Town<br>> Private Bag X3<br>> Rondebosch<br>> 7701<br>> SOUTH AFRICA<br>> <br>> CELL 0748 068 230<br>> <br>> --- On Tue, 12/14/10, Muhammad Rahiz <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>> wrote:<br>><br>> From: Muhammad Rahiz <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>><br>> Subject: Re: Standard color bar for multiple plots<br>> To: "saiguran loisulie" <<a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a>><br>> Cc: "Muhammad Rahiz" <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk"
href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>>,<br>> "<a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>" <<a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> Date: Tuesday, December 14, 2010, 1:17 AM<br>><br>> Hi Saiguran,<br>><br>> If you set<br>> 'set ccols 0 16 17 18 19 20 21 22 23 24 25 26'<br>> you need to define the cols as follows;<br>> 'set rgb 16<br>> 'set rgb 17<br>> 'set rgb 18<br>> 'set rgb 19<br>>
'set rgb 20<br>> 'set rgb 21<br>> 'set rgb 22<br>> 'set rgb 23<br>> 'set rgb 24<br>> 'set rgb 25<br>> 'set rgb 26<br>><br>> You have set the rgb like so;<br>><br>> 'set rgb 88 1 115 103'<br>> 'set rgb 89 0 113 101'<br>> 'set rgb 90 0 111 99'<br>> 'set rgb 91 0 109 97'<br>><br>> but they have not been defined in your original set ccols<br>><br>> 'set ccols 0 16 17 18 19 20 21 22 23 24 25 26'<br>><br>> It should be something like<br>><br>>
'set ccols 88 89 90 91 ....'<br>><br>> --<br>> Muhammad Rahiz<br>> Researcher & DPhil Candidate (Climate Systems & Policy)<br>> School of Geography & the Environment<br>> University of Oxford<br>><br>> On Tue, 14 Dec 2010, saiguran loisulie wrote:<br>><br>> > My script is attached<br>> ><br>> > Saiguran Loisulie<br>> > Climate Systems Analysis Group<br>> > Environmental and Geographical Science Department<br>> > University of Cape Town<br>> > Private Bag
X3<br>> > Rondebosch<br>> > 7701<br>> > SOUTH AFRICA<br>> ><br>> > CELL 0748 068 230<br>> ><br>> > --- On Mon, 12/13/10, Muhammad Rahiz<br>> <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>> wrote:<br>> ><br>> > From: Muhammad Rahiz <<a ymailto="mailto:muhammad.rahiz@ouce.ox.ac.uk" href="/mc/compose?to=muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>><br>> > Subject: Re: [gradsusr]
Standard color bar for multiple<br>> plots<br>> > To: "<a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a>" <<a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a>><br>> > Cc: "<a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>" <<a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> > Date: Monday, December 13, 2010, 7:17 AM<br>> ><br>> > Can you attach your
script?<br>> ><br>> > --<br>> > Muhammad Rahiz<br>> > Researcher & DPhil Candidate (Climate Systems & Policy)<br>> > School of Geography & the Environment<br>> > University of Oxford<br>> ><br>> > On Mon, 13 Dec 2010, <a ymailto="mailto:saiguranloi@yahoo.com" href="/mc/compose?to=saiguranloi@yahoo.com">saiguranloi@yahoo.com</a> wrote:<br>> ><br>> > > I am
plotting seasonal climatologies of air<br>> temperature and I<br>> > need a standard color bar for all the four plots.<br>> > > My contours range from 288 K to 310 K.<br>> > > I tried to set the rgb, clevs and ccols but it is not<br>> making<br>> > any difference from the default!<br>> > > Please help!<br>> > > Sent from my BlackBerry® smartphone from Zain Tanzania<br>> > ><br>>
> > _______________________________________________<br>> > > gradsusr mailing list<br>> > > <a ymailto="mailto:gradsusr@gradsusr.org" href="/mc/compose?to=gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>> > > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>> > ><br>> ><br>> ><br>> ><br>> > ???<br>> <br>> <br>> <br>></div></blockquote></td></tr></table><br>