Next: , Previous: border, Up: set-show


2.19.7 boxwidth

The boxwidth command is used to set the default width of boxes in the `boxes`, `boxerrorbars` and `candlesticks` styles.

Syntax:

           set boxwidth {<width>} {absolute|relative}
           show boxwidth
     

If a data file is plotted without the width being specified in the third, fourth, or fifth column (or using entry), or if a function is plotted, the width of each box is set by the boxwidth command. (If a width is given both in the file and by the boxwidth command, the one in the file is used.) If the width is not specified in one of these ways, the width of each box will be calculated automatically so that it touches the adjacent boxes. `relative` indicates, that the specified boxwidth is a scaling factor for the automatically calculated boxwidth, otherwise the boxwidth is taken as an `absolute` value (which is the default). In a four-column data set, the fourth column will be interpreted as the box width unless the width is set to -2.0, in which case the width will be calculated automatically. See `set style boxerrorbars` for more details.

To set the box width to automatic use the command

           set boxwidth
     

or, for four-column data,

           set boxwidth -2
     

The same effect can be achieved with the using keyword in `plot`:

           plot 'file' using 1:2:3:4:(-2)
     

To set the box width to half of the automatic size use

           set boxwidth 0.5 relative
     

To set the box width to an absolute value of 2 use

           set boxwidth 2 absolute
     

or, if you didn't specify a relative boxwidth before,

           set boxwidth 2