The `set border` and `set noborder` commands control the display of the graph
borders for the `plot` (Note:plot ) and `splot` (Note:splot )
commands.
Syntax:
set border {<integer> { {linestyle | ls <line_style>}
| {linetype | lt <line_type> }
{linewidth | lw <line_width>} } }
set noborder
show border
The borders are encoded in a 12-bit integer: the bottom four bits control the
border for `plot` and the sides of the base for `splot`; The next four bits
control the verticals in `splot`; the top four bits control the edges on top
of the `splot`. In detail, the `<integer>` should be the sum of the
appropriate entries from the following table:
plot border splot splot
Side splot base verticals top
bottom (south) 1 16 256
left (west) 2 32 512
top (north) 4 64 1024
right (east) 8 128 2048
The default is 31, which is all four sides for `plot`, and base and z axis
for `splot`.
Using the optional <line_style>, <line_type> and <line_width>
specifiers, the way the border lines are drawn can be influenced
(limited by what the current terminal driver supports). By default,
the border is drawn with twice the usual linewidth. The <line_width>
specifier scales this default value; for example, `set border 15 lw 2`
will produce a border with four times the usual linewidth.
Various axes or combinations of axes may be added together in the command.
To have tics on edges other than bottom and left, disable the usual tics and
enable the second axes.
Examples:
Draw all borders:
set border
Draw only the SOUTHWEST borders:
set border 3
Draw a complete box around a `splot`:
set border 4095
Draw a partial box, omitting the front vertical:
set border 127+256+512
Draw only the NORTHEAST borders:
set noxtics; set noytics; set x2tics; set y2tics; set border 12