[ncl-talk] RGB triplets colormap --> Two different figures, same script.

Lara Quitián Hernández laraquitianhernandez at gmail.com
Fri Jun 1 03:19:25 MDT 2018


Good morning,

I'm trying to display a particular field using a combination of RGB
triplets. I have already defined them:

*colors = (/"(/1.00, 1.00, 1.00/)", "(/0.98,  0.99,  1.00/)", \*
*"(/0.98,  0.99,  1.00/)", "(/0.96,  0.98,  0.99/)", \*
*"(/0.95,  0.98,  0.99/)", "(/0.94,  0.98,  0.99/)", \*
*"(/0.93,  0.97,  0.99/)", "(/0.92,  0.97,  0.99/)", \*
*"(/0.91,  0.96,  0.99/)", "(/0.90,  0.96,  0.99/)", \*
*"(/0.89,  0.96,  0.99/)", "(/0.88,  0.95,  0.99/)", \*
*"(/0.87,  0.95,  0.98/)", "(/0.86,  0.94,  0.98/)", \*
*"(/0.85,  0.94,  0.98/)", "(/0.84,  0.94,  0.98/)"/)*


*gsn_define_colormap(wks,colors)*

However, I obtain a figure without title, tickmarks, time stamp, labelbar
information, etc.

The issue is that when I use a predefined colormap without changing any
other variable in my script:


*gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")*

I obtain a complete figure with all predefined settings. Both images are
generated with the same script, only by modifying the colormap function.
What's going on?



Thanks in advance.

Regards,
Lara

-


*Lara Quitián Hernández, PhD Student*
Departamento de Física de la Tierra, Astronomía y Astrofísica
Facultad de Ciencias Físicas
Ciudad Universitaria, Plaza Ciencias, 1
28040 Madrid. Spain
Email: lquitian at ucm.es <mlunar at aemet.es>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/03bc3208/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 850hPa_ETH2_416_2014-10-19_18:00:00.png
Type: image/png
Size: 608346 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/03bc3208/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 850hPa_ETH_416_2014-10-19_18:00:00.png
Type: image/png
Size: 557955 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/03bc3208/attachment-0003.png>


More information about the ncl-talk mailing list