concept set palette in category gnuplot

appears as: set palette
Gnuplot in Action

This is an excerpt from Manning's book Gnuplot in Action.

set palette defined ( 0 'blue', 0.5 'white', 1 'red' )

In this appendix, we’ll first study how to set up such mappings between numbers and colors. Because the values in a false-color plot typically form a continuum, the mapping usually consists of a continuous color ramp or color gradient. The gnuplot command to create and manage such color gradients is set palette, and hence I’ll refer to these mappings as palettes. After introducing the commands to define palettes, we’ll look in detail at a catalog of example palettes for a variety of different applications and point out their strengths and weaknesses.

Figure D.2. Two examples of false-color plots. The function is the same as in figure D.1. The graph on the left was drawn using a simple palette defined by set palette defined (-1 'white', 0 'blue', 0 'red', 1 'white' ); the graph on the right uses the palette from panel N in figure D.4.
set palette defined ( -1     "red", 0   "white", 1    "blue" )
set palette defined ( -1 "#ff0000", 0 "#ffffff", 1 "#0000ff" )
set palette defined ( -1     1 0 0, 0     1 1 1, 1     0 0 1 )
set palette defined ( -1     "red", 0 "#ffffff", 1     0 0 1 )