Syntax (the options can be given in any order):
set pm3d { { at <position> } { interpolate <steps/points in scan, between scans> } { scansautomatic | scansforward | scansbackward | depthorder } { flush { begin | center | end } } { ftriangles | noftriangles } { clip1in | clip4in } { {no}clipcb } { corners2color { mean|geomean|harmean|rms|median|min|max|c1|c2|c3|c4 } } } show pm3d unset pm3d
A pm3d color surface is drawn if the splot command specifies with pm3d,
if the data or function style is set to pm3d globally, or if the pm3d mode is
set pm3d implicit. In the latter two cases, the pm3d surface is draw in
addition to the mesh produced by the style specified in the plot command. E.g.
splot 'fred.dat' with lines, 'lola.dat' with lines
splot 'fred.dat' with lines, 'lola.dat' with pm3d
On gnuplot start-up, the mode is explicit. For historical and compatibility reasons, the commands set pm3d; (i.e. no options) and set pm3d at X ... (i.e. at is the first option) change the mode to implicit. The command set pm3d; sets other options to their default state.
If you set the default data or function style to pm3d, e.g.:
set style data pm3d
Note that when plotting several plots, they are plotted in the order given on the command line. This can be of interest especially for filled surfaces which can overwrite and therefore hide part of earlier plots.
The pm3d coloring can be drawn at any or all of three different positions,
top, bottom, or surface. See pm3d position (p. ).
The following command draws three color surfaces at different altitudes:
set border 4095 set pm3d at s splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t
See also help for set palette (p. ), set cbrange (p.
), set colorbox (p.
),
and definitely the demo file demo/pm3d.dem.