gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
144 <strong>gnuplot</strong> 4.3 70 SET-SHOW<br />
The is specified by either x,y or x,y,z, and may be preceded by first, second, graph, screen,<br />
or character to select the coordinate system. is the offset of the tics texts from their default<br />
positions, while the default coordinate system is character. See coordinates (p. 24) for details.<br />
nooffset switches off the offset.<br />
Example:<br />
Move xtics more closely to the plot.<br />
set xtics offset 0,graph 0.05<br />
set xtics with no options restores the default border or axis if xtics are being displayed; otherwise it<br />
has no effect. Any previously specified tic frequency or position {and labels} are retained.<br />
Positions of the tics are calculated automatically by default or if the autofreq option is given; otherwise<br />
they may be specified in either of two forms:<br />
The implicit , , form specifies that a series of tics will be plotted on the axis<br />
between the values and with an increment of . If is not given, it is<br />
assumed to be infinity. The increment may be negative. If neither nor is given, <br />
is assumed to be negative infinity, is assumed to be positive infinity, and the tics will be drawn<br />
at integral multiples of . If the axis is logarithmic, the increment will be used as a multiplicative<br />
factor.<br />
If you specify to a negative or after a numerical value (e.g., rotate by <br />
or offset ), the parser fails because it subtracts or from that value. As a<br />
workaround, specify 0- resp. 0- in that case.<br />
Example:<br />
set xtics border offset 0,0.5 -5,1,5<br />
Fails with ’invalid expression’ at the last comma.<br />
set xtics border offset 0,0.5 0-5,1,5<br />
or<br />
set xtics offset 0,0.5 border -5,1,5<br />
Sets tics at the border, tics text with an offset of 0,0.5 characters, and sets the start, increment, and end<br />
to -5, 1, and 5, as requested.<br />
The set grid options ’front’, ’back’ and ’layerdefault’ affect the drawing order of the xtics, too.<br />
Examples:<br />
Make tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.<br />
set xtics 0,.5,10<br />
Make tics at ..., -10, -5, 0, 5, 10, ...<br />
set xtics 5<br />
Make tics at 1, 100, 1e4, 1e6, 1e8.<br />
set logscale x; set xtics 1,100,1e8<br />
The explicit ("" , ...) form allows arbitrary tic positions or non-numeric tic<br />
labels. In this form, the tics do not need to be listed in numerical order. Each tic has a position,<br />
optionally with a label. Note that the label is a string enclosed by quotes. It may be a constant string,<br />
such as "hello", may contain formatting information for converting the position into its label, such as<br />
"%3f clients", or may be empty, "". See set format (p. 100) for more information. If no string is<br />
given, the default label (numerical) is used.<br />
An explicit tic mark has a third parameter, the "level". The default is level 0, a major tic. A level of 1<br />
generates a minor tic. If the level is specified, then the label must also be supplied.<br />
Examples: