[gradsusr] How to change the color spectrum into a black and white / grey spectrum?
Martin V. Mathew
vmartinmathew at gmail.com
Wed Apr 17 08:57:41 EDT 2013
Hi
You may also use the attached grads script named 'colormap_lib.gs' to set
color maps other than default rainbow color map. This function have 20
color maps, each of those color map contain 22 shades. The numbers (which
is required for command 'set ccols') corresponding to each shade can be
viewed from the attached figure 'colormap.eps'.
You can run this function from grads script or executable files. Here I am
giving an example for setting gray colormap.
* 'Usage: colormap_lib.gs 'No. representng required colormap' '<optional
list flag>'
* where arguments No. representng required colormap can
have values 0 to 20'
* <optional list flag> -----> setting 1 will list all
available colormaps in the function'
run colormap_lib.gs 2
set gxout shaded
set clevs 18 19 19.5 20 20.5 21 21.5 22 22.5 23 23.5 24 25 26 27 28 29 30
31
set ccols 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36
d sst
Regards
Martin
On 17 April 2013 17:47, Mohsen Soltani <soltani.clima at gmail.com> wrote:
> Dear Davide;
>
> Thank very much for your nice suggestions. I really appreciate it.
>
> Cordially,
> Mohsen
>
>
> --
> some are weather-wise some are otherwise!
> --
> Best Wishes,
> (Mr.) Mohsen Soltani
> Climatology Grad Student (M.Sc.),
> Faculty of Geography, University of Tehran, Tehran, Iran
> Tel: (+98) 9119772934
> e-mail: soltani.clima at gmail.com
>
>
> On Wed, Apr 17, 2013 at 12:59 AM, Davide Sacchetti <
> davide.sacchetti at arpal.gov.it> wrote:
>
>> for X11 display:
>> set display gray white
>> clear
>>
>> for the palette:
>> set ccolor rainbow
>> or:
>> set ccolor revrain (old command: it doesn't seem to have any
>> affect on grads2)
>>
>> for eps output:
>> gxeps -b ...
>>
>>
>> if you want to produce a custum palette you can, e.g.:
>> set rgb 20 ...
>> set rgb 21 ...
>> ...
>> set rgb 30 ...
>> set rbcols 20 21 ... 30
>> or:
>> set ccols 20 21 ... 30
>> set clevs ...
>>
>> bye bye
>> Davide
>>
>> On Tue, 2013-04-16 at 22:32 -0700, Mohsen Soltani wrote:
>> > Dear Friends;
>> >
>> > I wanna make a grey output. How can I change the colorbar's spectrum
>> > from color into grey? I mean I’ve like to have a heavy dark black to
>> > light grey and finally white colorbar's spectrum.
>> >
>> >
>> >
>> > I used this to make a grey chart, ….. '!gxeps -b -i filename -o E:/
>> > filename.eps' . Using "-b " instead of –C, produces a black and white
>> > map. But I’m afraid the output doesn’t look like very good! Therefore,
>> > I wanna change it from color into a range of black and white colors
>> > through defining new colorbar's spectrum.
>> >
>> >
>> >
>> > How can I do that? Any suggestion?
>> >
>> >
>> >
>> > Yours,
>> >
>> > Mohsen
>> >
>> >
>> > --
>> > some are weather-wise some are otherwise!
>> > --
>> > Best Wishes,
>> > (Mr.) Mohsen Soltani
>> > Climatology Grad Student (M.Sc.),
>> > Faculty of Geography, University of Tehran, Tehran, Iran
>> > Tel: (+98) 9119772934
>> > e-mail: soltani.clima at gmail.com
>> >
>> > _______________________________________________
>> > gradsusr mailing list
>> > gradsusr at gradsusr.org
>> > http://gradsusr.org/mailman/listinfo/gradsusr
>>
>> --
>> --> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
>> --
>> Davide Sacchetti
>> Centro Funzionale Meteo Idrologico di Protezione Civile della Regione
>> Liguria
>> ARPAL Unità Tecnica Complessa di livello Regionale
>> V.le Brigare Partigiane 2 16121 Genova (I)
>> tel: +39 010 6437535 fax: +39 010 6437520
>> mail: davide.sacchetti at arpal.gov.it web: www.meteoliguria.it
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Martin V. Mathew
Research scholar
Centre for Oceans, Rivers, Atmosphere and Land Sciences (CORAL)
IIT Kharagpur
India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130417/c286f3c5/attachment-0003.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colormap.eps
Type: application/postscript
Size: 310047 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130417/c286f3c5/attachment-0003.eps
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colormap_lib.gs
Type: application/octet-stream
Size: 26241 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130417/c286f3c5/attachment-0003.obj
More information about the gradsusr
mailing list