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.

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

Ranges may also be specified on the plot command line. A range given on the plot line will be used for<br />

that single plot command; a range given by a set command will be used for all subsequent plots that<br />

do not specify their own ranges. The same holds true for splot.<br />

Examples:<br />

To set the xrange to the default:<br />

set xrange [-10:10]<br />

To set the yrange to increase downwards:<br />

set yrange [10:-10]<br />

To change zmax to 10 without affecting zmin (which may still be autoscaled):<br />

set zrange [:10]<br />

To autoscale xmin while leaving xmax unchanged:<br />

set xrange [*:]<br />

70.89 Xtics<br />

Fine control of the major (labelled) tics on the x axis is possible with the set xtics command. The tics<br />

may be turned off with the unset xtics command, and may be turned on (the default state) with set<br />

xtics. Similar commands control the major tics on the y, z, x2 and y2 axes.<br />

Syntax:<br />

set xtics {axis | border} {{no}mirror}<br />

{in | out} {scale {default | {,}}}<br />

{{no}rotate {by }} {offset | nooffset}<br />

{add}<br />

{ autofreq<br />

| <br />

| , {,}<br />

| ({""} {} {,{""}...) }<br />

{ font "name{,}" }<br />

{ textcolor }<br />

unset xtics<br />

show xtics<br />

The same syntax applies to ytics, ztics, x2tics, y2tics and cbtics.<br />

axis or border tells <strong>gnuplot</strong> to put the tics (both the tics themselves and the accompanying labels)<br />

along the axis or the border, respectively. If the axis is very close to the border, the axis option will<br />

move the tic labels to outside the border. The relevant margin settings will usually be sized badly by<br />

the automatic layout algorithm in this case.<br />

mirror tells <strong>gnuplot</strong> to put unlabelled tics at the same positions on the opposite border. nomirror<br />

does what you think it does.<br />

in and out change the tic marks to be drawn inwards or outwards.<br />

With scale, the size of the tic marks can be adjusted. If is not specified, it is 0.5*.<br />

The default size 1.0 for major tics and 0.5 for minor tics is requested by scale default.<br />

rotate asks <strong>gnuplot</strong> to rotate the text through 90 degrees, which will be done if the terminal driver<br />

in use supports text rotation. norotate cancels this. rotate by asks for rotation by <br />

degrees, supported by some terminal types.<br />

The defaults are border mirror norotate for tics on the x and y axes, and border nomirror norotate<br />

for tics on the x2 and y2 axes. For the z axis, the {axis | border} option is not available and the<br />

default is nomirror. If you do want to mirror the z-axis tics, you might want to create a bit more room<br />

for them with set border.

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

Saved successfully!

Ooh no, something went wrong!