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 57<br />

Draw default borders:<br />

set border<br />

Draw only the left and bottom (plot) or both front and back bottom left (splot) borders:<br />

set border 3<br />

Draw a complete box around a splot:<br />

set border 4095<br />

Draw a topless box around a splot, omitting the front vertical:<br />

set border 127+256+512 # or set border 1023-128<br />

Draw only the top and right borders for a plot and label them as axes:<br />

unset xtics; unset ytics; set x2tics; set y2tics; set border 12<br />

See also<br />

borders demo.<br />

36.7 Boxwidth<br />

The set boxwidth command is used to set the default width of boxes in the boxes, boxerrorbars<br />

and candlesticks styles.<br />

Syntax:<br />

set boxwidth {} {absolute|relative}<br />

show boxwidth<br />

If a data file is plotted without the width being specified in the third, fourth, or fifth column (or using<br />

entry), or if a function is plotted, the width of each box is set by the set boxwidth command. (If a<br />

width is given both in the file and by the set boxwidth command, the one in the file is used.) If the<br />

width is not specified in one of these ways, the width of each box will be calculated automatically so<br />

that it touches the adjacent boxes. relative indicates, that the specified boxwidth is a scaling factor for<br />

the automatically calculated boxwidth, otherwise the boxwidth is taken as an absolute value (which<br />

is the default). In a four-column data set, the fourth column will be interpreted as the box width<br />

unless the width is set to -2.0, in which case the width will be calculated automatically. See set style<br />

boxerrorbars (p. 95) for more details.<br />

To set the box width to automatic use the command<br />

set boxwidth<br />

or, for four-column data,<br />

set boxwidth -2<br />

The same effect can be achieved with the using keyword in plot:<br />

plot ’file’ using 1:2:3:4:(-2)<br />

To set the box width to half of the automatic size use<br />

set boxwidth 0.5 relative<br />

To set the box width to an absolute value of 2 use<br />

set boxwidth 2 absolute<br />

or, if you didn’t specify a relative boxwidth before,<br />

set boxwidth 2

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

Saved successfully!

Ooh no, something went wrong!