Boxwidth

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

Syntax:

         set boxwidth {<width>}
         show boxwidth

If a data file is plotted without the width being specified in the third, fourth, or fifth column, or if a function is plotted, the width of each box is set by the set boxwidth command. (If a width is given after the set boxwidth command, the one taken from the data 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. 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 boxerrorbars or set style for more details.

To set the box width to automatic use the command

         set boxwidth
         set boxwidth -2  (4-col data)

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

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