01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

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.

36 SET-SHOW gnuplot 4.0 149<br />

In 2-d, xrange and yrange determine the extent of the axes, trange determines the range of the<br />

parametric variable in parametric mode or the range of the angle in polar mode. Similarly in parametric<br />

3-d, xrange, yrange, and zrange govern the axes and urange and vrange govern the parametric<br />

variables.<br />

In polar mode, rrange determines the radial range plotted. acts as an additive constant to the<br />

radius, whereas acts as a clip to the radius — no point with radius greater than will<br />

be plotted. xrange and yrange are affected — the ranges can be set as if the graph was of r(t)-rmin,<br />

with rmin added to all the labels.<br />

Any range may be partially or totally autoscaled, although it may not make sense to autoscale a parametric<br />

variable unless it is plotted with data.<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 />

36.85 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} {{no}rotate {by }}<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 gnuplot 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 gnuplot to put unlabelled tics at the same positions on the opposite border. nomirror<br />

does what you think it does.<br />

rotate asks gnuplot 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.

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

Saved successfully!

Ooh no, something went wrong!