axis.band
Shades an interval on an axis across the whole plot — a reference band the marks are read against: an operating range, the recession quarters, $\pm\sigma$. It draws under the grid and the marks. The axis is chosen by which interval is given, as with axis.label's coordinate.
#Attributes
On any plane
Also written: text, nameThe name at the band's edge. Rich text; optional — a band says something with no words on it.Can be written as shorthand: axis.band:value
colour
Also written: colorBand and label colour.
Default
greyOnly withplane
Only withplane
The interval to shade along the x axis, e.g. [2008, 2009.5]. Give exactly one of x or y; either end may ride a parameter. On a categorical axis the ends are names,
[Tue, Thu] — a band to a name covers that name’s whole share of the axis.Only withplane
#Allowed in
#Examples
axis.band(label: recession; x: [2008, 2009.5])axis.band(y: [-1, 1]; colour: teal; edges: true)