gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
122 <strong>gnuplot</strong> 4.3 70 SET-SHOW<br />
70.50 Palette<br />
Palette is a color storage for use by pm3d, filled color contours or polygons, color histograms, color<br />
gradient background, and whatever it is or it will be implemented... Here it stands for a palette of<br />
smooth "continuous" colors or grays, but let’s call it just a palette.<br />
Color palettes require terminal entries for filled color polygons and palettes of smooth colors, are currently<br />
available for terminals listed in help for set pm3d. The range of color values are adjustable independently<br />
by set cbrange and set log cb. The whole color palette is visualized in the colorbox.<br />
Syntax:<br />
set palette<br />
set palette {<br />
{ gray | color }<br />
{ gamma }<br />
{ rgbformulae ,,<br />
| defined { ( {, }... ) }<br />
| file ’’ {datafile-modifiers}<br />
| functions ,,<br />
}<br />
{ model { RGB | HSV | CMY | YIQ | XYZ } }<br />
{ positive | negative }<br />
{ nops_allcF | ps_allcF }<br />
{ maxcolors }<br />
}<br />
show palette<br />
show palette palette {{float | int}}<br />
show palette gradient<br />
show palette fit2rgbformulae<br />
show palette rgbformulae<br />
show palette colornames<br />
set palette (i.e. without options) sets up the default values. Otherwise, the options can be given in<br />
any order. show palette shows the current palette properties.<br />
show palette gradient displays the gradient defining the palette (if appropriate). show palette rgbformulae<br />
prints the available fixed gray –> color transformation formulae. show palette colornames<br />
prints the implemented color names.<br />
show palette palette prints to screen or to the file given by set output table of RGB triplets<br />
calculated for the current palette settings and a palette having discrete colors. The default wide<br />
table can be limited to 3 columns of r,g,b float values [0..1] or integer values [0..255] by options float or int,<br />
respectively. This way, the current <strong>gnuplot</strong> color palette can be loaded into other imaging applications,<br />
for example Octave. Additionally to this textual list of RGB table, you can enjoy command test palette<br />
to draw graphically the R,G,B profiles for the current palette.<br />
The following options determine the coloring properties.<br />
Figure using this palette can be gray or color. For instance, in pm3d color surfaces the gray of each<br />
small spot is obtained by mapping the averaged z-coordinate of the 4 corners of surface quadrangles<br />
into the range [min z,max z] providing range of grays [0:1]. This value can be used directly as the gray<br />
for gray maps. The color map requires a transformation gray –> (R,G,B), i.e. a mapping [0:1] –><br />
([0:1],[0:1],[0:1]).<br />
Basically two different types of mappings can be used: Analytic formulae to convert gray to color,<br />
or discrete mapping tables which are interpolated. palette rgbformulae and palette functions<br />
use analytic formulae whereas palette defined and palette file use interpolated tables. palette<br />
rgbformulae reduces the size of postscript output to a minimum.<br />
The command show palette fit2rgbformulae finds the best matching set palette rgbformulae for<br />
the current set palette. Naturally, it makes sense to use it for non-rgbformulae palettes. This command<br />
can be found useful mainly for external programs using the same rgbformulae definition of palettes as<br />
<strong>gnuplot</strong>, like zimg (