Загрузка
The mark fills between pairs of data points to show an interval on the value axis:
p = so.Plot(seaice, x="Day", ymin="1980", ymax="2019")
p.add(so.Band())
By default it draws a faint ribbon with no edges, but edges can be added:
p.add(so.Band(alpha=.5, edgewidth=2))
The defaults are optimized for the main expected usecase, where the mark is combined with a line to show an errorbar interval:
(
so.Plot(fmri, x="timepoint", y="signal", color="event")
.add(so.Band(), so.Est())
.add(so.Line(), so.Agg())
)
When min/max values are not explicitly assigned or added in a transform, the band will cover the full extent of the data:
(
so.Plot(fmri, x="timepoint", y="signal", color="event")
.add(so.Line(linewidth=.5), group="subject")
.add(so.Band())
)