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.

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

For backward compatibility with older versions, the following forms are also permitted:<br />

set clip<br />

unset clip<br />

set clip is synonymous with set clip points; unset clip turns off all three types of clipping.<br />

70.10 Cntrparam<br />

set cntrparam controls the generation of contours and their smoothness for a contour plot.<br />

contour displays current settings of cntrparam as well as contour.<br />

Syntax:<br />

set cntrparam { { linear<br />

| cubicspline<br />

| bspline<br />

| points <br />

| order <br />

| levels { auto {} | <br />

| discrete {,{,...}}<br />

| incremental , {,}<br />

}<br />

}<br />

}<br />

show contour<br />

show<br />

This command has two functions. First, it sets the values of z for which contour points are to be<br />

determined (by linear interpolation between data points or function isosamples.) Second, it controls the<br />

way contours are drawn between the points determined to be of equal z. should be an integral<br />

constant expression and , ... any constant expressions. The parameters are:<br />

linear, cubicspline, bspline — Controls type of approximation or interpolation. If linear, then<br />

straight line segments connect points of equal z magnitude. If cubicspline, then piecewise-linear contours<br />

are interpolated between the same equal z points to form somewhat smoother contours, but which<br />

may undulate. If bspline, a guaranteed-smoother curve is drawn, which only approximates the position<br />

of the points of equal-z.<br />

points — Eventually all drawings are done with piecewise-linear strokes. This number controls the<br />

number of line segments used to approximate the bspline or cubicspline curve. Number of cubicspline<br />

or bspline segments (strokes) = points * number of linear segments.<br />

order — Order of the bspline approximation to be used. The bigger this order is, the smoother the<br />

resulting contour. (Of course, higher order bspline curves will move further away from the original<br />

piecewise linear data.) This option is relevant for bspline mode only. Allowed values are integers in the<br />

range from 2 (linear) to 10.<br />

levels — Selection of contour levels, controlled by auto (default), discrete, incremental, and ,<br />

number of contour levels.<br />

For auto, specifies a nominal number of levels; the actual number will be adjusted to give simple<br />

labels. If the surface is bounded by zmin and zmax, contours will be generated at integer multiples of<br />

dz between zmin and zmax, where dz is 1, 2, or 5 times some power of ten (like the step between two<br />

tic marks).<br />

For levels discrete, contours will be generated at z = , ... as specified; the number of<br />

discrete levels sets the number of contour levels. In discrete mode, any set cntrparam levels <br />

are ignored.<br />

For incremental, contours are generated at values of z beginning at and increasing by<br />

, until the number of contours is reached. is used to determine the number of<br />

contour levels, which will be changed by any subsequent set cntrparam levels . If the z axis is<br />

logarithmic, will be interpreted as a factor, just like in set ztics.

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

Saved successfully!

Ooh no, something went wrong!