errorbar
lq.errorbar(kind="x", cap=3pt, stroke=auto, cap-stroke=auto)
An error bar object for a plot. This type allows for quick configuration and
complete restyling of error bars. For drawing plots with error bars,
use plot
.
#lq.diagram(
lq.plot(
(1, 2, 3, 4),
(1, 2, 1.5, 2.1),
xerr: .2,
yerr: (.2, .1, .2, .2),
)
)
The default styling can be changed through set rules
#show: lq.set-errorbar(stroke: 1pt + red, cap: none)
#lq.diagram(
lq.plot(
(1, 2, 3, 4),
(1, 2, 1.5, 2.1),
xerr: .2,
yerr: (.2, .1, .2, .2),
)
)
Parameters
kind : "x"
| "y"
default: "x"
The kind of error bar: horizontal ("x"
) or vertical ("y"
).
cap : none
| length
default: 3pt
The length of the cap. If set to none
, no cap is drawn.
stroke : auto
| stroke
default: auto
How to stroke the error bar. If set to auto
, the stroke is inherited
the plot.
cap-stroke : auto
| stroke
default: auto
How to stroke the cap. If set to auto
, the stroke is inherited
from errorbar.stroke
.