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