NCL Home > Documentation > Graphics

About NCL color tables

There are a large number of predefined color tables available. The default color table has 32 colors.

If you have a color table that you use exclusively, you can set this in your .hluresfile so that it becomes the default every time you run NCL.

You can create your own color table file and place it where NCL can load it directly. You can also use predefined named colors, or create your own color table inside an NCL script using an n x 3 floating point array. For some examples, see the color page in the application examples.

Of related interest, there's an interesting article on improving color maps for scientific visualizations entitled "The End of the Rainbow? Color Schemes for Improved Data Graphics". Click on the PDF file to download the article, or view some of the PNG files for comparisons of color maps.

Groupings

Application Examples

Code Snippets

    gsn_define_colormap(wks,"gui_default")
    setvalues wks 
      "wkColorMap" : "temp1"
    end setvalues