Replica of the ‘jet colors’ palette in matlab. Produces a color palette using the function colorRampPalette that starts at darkblue moves through cyan, green, yellow, and ends at darkred. This color palette works well for representing mapped oceanographic data such as SST or chl-a.
number of levels the palette should be broken into. For example n = 100 creates 100 shades ranging over the specified colors.
This function outputs a vector of colors with length equal to n.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.