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.

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

will create a plot of f(x) using the default blue line and a plot of g(x) using the user-defined wide green<br />

line. Similarly the commands<br />

set style function linespoints<br />

plot p(x) lt 1 pt 3, q(x) ls 1<br />

will create a plot of p(x) using the default triangles connected by a red line and q(x) using small triangles<br />

connected by a green line.<br />

splot sin(sqrt(x*x+y*y))/sqrt(x*x+y*y) w l pal<br />

creates a surface plot using smooth colors according to palette. Note, that this works only on some<br />

terminals. See also set palette (p. 122), set pm3d (p. 118).<br />

set style line 10 linetype 1 linecolor rgb "cyan"<br />

will assign linestyle 10 to be a solid cyan line on any terminal that supports rgb colors.<br />

70.59.7 Set style rectangle<br />

Rectangles defined with the set object rectangle command can have individual styles. However, if<br />

a rectangle is not assigned a private style then it inherits a default that is taken from the set style<br />

rectangle command.<br />

Syntax:<br />

set style rectangle {front|back} {fillcolor } {fs }<br />

{lw|linewidth }<br />

See colorspec (p. 32) and fillstyle (p. 131). fillcolor may be abbreviated as fc.<br />

Examples:<br />

set style rectangle back fc rgb "white" fs solid 1.0 border -1<br />

set style rectangle fc linsestyle 3 fs pattern 2 noborder<br />

The default values correspond to solid fill with the background color and a black border.<br />

70.60 Surface<br />

The command set surface controls the display of surfaces by splot.<br />

Syntax:<br />

set surface<br />

unset surface<br />

show surface<br />

The surface is drawn with the style specified by with, or else the appropriate style, data or function.<br />

Whenever unset surface is issued, splot will not draw points or lines corresponding to the function<br />

or data file points. Contours may still be drawn on the surface, depending on the set contour option.<br />

unset surface; set contour base is useful for displaying contours on the grid base. See also set<br />

contour (p. 94).<br />

70.61 Table<br />

When table mode is enabled, plot and splot commands print out a multicolumn ASCII table of X<br />

Y {Z} R values rather than creating an actual plot on the current terminal. The character R takes<br />

on one of three values: "i" if the point is in the active range, "o" if it is out-of-range, or "u" if it is<br />

undefined. The data format is determined by the format of the axis labels (see set format (p. 100)),<br />

and the columns are separated by single spaces. This can be useful if you want to generate contours and<br />

then save them for further use, perhaps for plotting with plot; see set contour (p. 94) for example.<br />

The same method can be used to save interpolated data (see set samples (p. 129) and set dgrid3d<br />

(p. 97)).<br />

Syntax:

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

Saved successfully!

Ooh no, something went wrong!