14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

set style line 2604 linetype -1 linewidth .4<br />

set colorbox border 2604<br />

will use line style 2604, a thin line with the default border color (-1) for drawing the border. bdefault<br />

(which is the default) will use the default border line style for drawing the border of the color box.<br />

The axis of the color box is called cb and it is controlled by means of the usual axes commands,<br />

i.e. set/unset/show with cbrange, [m]cbtics, format cb, grid [m]cb, cblabel, and perhaps even<br />

cbdata, [no]cbdtics, [no]cbmtics.<br />

set colorbox without any parameter switches the position to default.<br />

default parameters for the colorbox and switches the colorbox off.<br />

unset colorbox resets the<br />

See also help for set pm3d (p. 118), set palette (p. 122), x11 pm3d (p. 204), and set style line<br />

(p. 133).<br />

70.12 Contour<br />

set contour enables contour drawing for surfaces. This option is available for splot only. It requires<br />

grid data, see grid data (p. 153) for more details. If contours are desired from non-grid data, set<br />

dgrid3d can be used to create an appropriate grid.<br />

Syntax:<br />

set contour {base | surface | both}<br />

unset contour<br />

show contour<br />

The three options specify where to draw the contours: base draws the contours on the grid base where<br />

the x/ytics are placed, surface draws the contours on the surfaces themselves, and both draws the<br />

contours on both the base and the surface. If no option is provided, the default is base.<br />

See also set cntrparam (p. 92) for the parameters that affect the drawing of contours, and set clabel<br />

(p. 91) for control of labelling of the contours.<br />

The surface can be switched off (see set surface (p. 134)), giving a contour-only graph. Though it is<br />

possible to use set size to enlarge the plot to fill the screen, more control over the output format can<br />

be obtained by writing the contour information to a file, and rereading it as a 2D datafile plot:<br />

unset surface<br />

set contour<br />

set cntrparam ...<br />

set table ’filename’<br />

splot ...<br />

unset table<br />

# contour info now in filename<br />

set term <br />

plot ’filename’<br />

In order to draw contours, the data should be organized as "grid data". In such a file all the points for<br />

a single y-isoline are listed, then all the points for the next y-isoline, and so on. A single blank line (a<br />

line containing no characters other than blank spaces and a carriage return and/or a line feed) separates<br />

one y-isoline from the next. See also splot datafile (p. 150).<br />

See also<br />

and<br />

contours demo (contours.dem)<br />

contours with user defined levels demo (discrete.dem).<br />

70.13 Data style<br />

This form of the command is deprecated. Please see set style data (p. 131).

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

Saved successfully!

Ooh no, something went wrong!