14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

70 SET-SHOW <strong>gnuplot</strong> 4.3 123<br />

).<br />

http://zimg.sourceforge.net<br />

set palette gray switches to a gray only palette. set palette rgbformulae, set palette defined,<br />

set palette file and set palette functions switch to a color mapping. set palette color is an easy<br />

way to switch back from the gray palette to the last color mapping.<br />

Automatic gamma correction via set palette gamma can be done for gray maps only (set<br />

palette gray). Linear mapping to gray is for gamma equals 1, see test palette (p. 154). Gamma is<br />

ignored for color mappings.<br />

Most terminals support only discrete number of colors (e.g. 256 colors in gif). All entries of the palette<br />

remaining after the default <strong>gnuplot</strong> linetype colors declaration are allocated for pm3d by default. Then<br />

multiplot could fail if there are no more color positions in the terminal available. Then you should use<br />

set palette maxcolors with a reasonably small value. This option can also be used to<br />

separate levels of z=constant in discrete steps, thus to emulate filled contours. Default value of 0 stays<br />

for allocating all remaining entries in the terminal palette or for to use exact mapping to RGB.<br />

RGB color space might not be the most useful color space to work in. For that reason you may change<br />

the color space with model to one of RGB, HSV, CMY, YIQ and XYZ. Using color names for set<br />

palette defined tables and a color space other than RGB will result in funny colors. All explanation<br />

have been written for RGB color space, so please note, that R can be H, C, Y, or X, depending on the<br />

actual color space (G and B accordingly).<br />

All values for all color spaces are limited to [0,1].<br />

RGB stands for Red, Green and Blue; CMY stands for Cyan, Magenta and Yellow; HSV stands for<br />

Hue, Saturation, and Value; YIQ is the color model used by the U.S. Commercial Color Television<br />

Broadcasting, it is basically an RGB recoding with downward compatibility for black and white television;<br />

XYZ are the three primary colors of the color model defined by the ’Commission Internationale de<br />

l’Eclairage’ (CIE). For more information on color models see:<br />

and<br />

http://www.cs.rit.edu/~ ncs/color/glossary.htm<br />

http://cs.fit.edu/wds/classes/cse5255/cse5255/davis/index.html<br />

70.50.1 Rgbformulae<br />

For rgbformulae three suitable mapping functions have to be chosen. This is done via rgbformulae<br />

,,. The available mapping functions are listed by show palette rgbformulae. Default<br />

is 7,5,15, some other examples are 3,11,6, 21,23,3 or 3,23,21. Negative numbers, like 3,-11,-6, mean<br />

inverted color (i.e. 1-gray passed into the formula, see also positive (p. 123) and negative (p. 123)<br />

options below).<br />

Some nice schemes in RGB color space<br />

7,5,15 ... traditional pm3d (black-blue-red-yellow)<br />

3,11,6 ... green-red-violet<br />

23,28,3 ... ocean (green-blue-white); try also all other permutations<br />

21,22,23 ... hot (black-red-yellow-white)<br />

30,31,32 ... color printable on gray (black-blue-violet-yellow-white)<br />

33,13,10 ... rainbow (blue-green-yellow-red)<br />

34,35,36 ... AFM hot (black-red-yellow-white)<br />

A full color palette in HSV color space<br />

3,2,2 ... red-yellow-green-cyan-blue-magenta-red<br />

Please note that even if called rgbformulae the formulas might actually determine the ,,<br />

or ,, or ... color components as usual.<br />

Use positive and negative to invert the figure colors.<br />

Note that it is possible to find a set of the best matching rgbformulae for any other color scheme by the<br />

command

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!