GNUPlot Manual
GNUPlot Manual
GNUPlot Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
36 SET-SHOW gnuplot 4.0 91<br />
By default, sampling is set to 100 points. A higher sampling rate will produce more accurate plots,<br />
but will take longer. This parameter has no effect on data file plotting unless one of the interpolation/approximation<br />
options is used. See plot smooth (p. 41) re 2-d data and set cntrparam (p. 58)<br />
and set dgrid3d (p. 63) re 3-d data.<br />
When a 2-d graph is being done, only the value of is relevant.<br />
When a surface plot is being done without the removal of hidden lines, the value of samples specifies the<br />
number of samples that are to be evaluated for the isolines. Each iso-v line will have samples<br />
and each iso-u line will have samples. If you only specify , will<br />
be set to the same value as . See also set isosamples (p. 71).<br />
36.56 Size<br />
The set size command scales the displayed size of the plot.<br />
Syntax:<br />
set size {{no}square | ratio | noratio} {,}<br />
show size<br />
The and values are the scaling factors for the size of the plot, which includes the<br />
graph and the margins.<br />
ratio causes gnuplot to try to create a graph with an aspect ratio of (the ratio of the y-axis length<br />
to the x-axis length) within the portion of the plot specified by and .<br />
The meaning of a negative value for is different. If =-1, gnuplot tries to set the scales so that<br />
the unit has the same length on both the x and y axes (suitable for geographical data, for instance). If<br />
=-2, the unit on y has twice the length of the unit on x, and so on.<br />
The success of gnuplot in producing the requested aspect ratio depends on the terminal selected. The<br />
graph area will be the largest rectangle of aspect ratio that will fit into the specified portion of the<br />
output (leaving adequate margins, of course).<br />
square is a synonym for ratio 1.<br />
Both noratio and nosquare return the graph to the default aspect ratio of the terminal, but do not<br />
return or to their default values (1.0).<br />
ratio and square have no effect on 3-d plots.<br />
set size is relative to the default size, which differs from terminal to terminal. Since gnuplot fills as<br />
much of the available plotting area as possible by default, it is safer to use set size to decrease the size<br />
of a plot than to increase it. See set terminal (p. 99) for the default sizes.<br />
On some terminals, changing the size of the plot will result in text being misplaced.<br />
Examples:<br />
To set the size to normal size use:<br />
set size 1,1<br />
To make the graph half size and square use:<br />
set size square 0.5,0.5<br />
To make the graph twice as high as wide use:<br />
set size ratio 2<br />
See also<br />
airfoil demo.<br />
36.57 Style<br />
Default plotting styles are chosen with the set style data and set style function commands. See plot<br />
with (p. 47) for information about how to override the default plotting style for individual functions<br />
and data sets. See plotting styles (p. 94) for a complete list of styles.