path
lq.path(..vertices, fill=none, stroke=auto, closed=false, tip=none, toe=none, label=none, clip=true, z-index=2)(source)Draws a path into the data area. Each vertex may be given as data coordinates,
as percentage relative to the data area or in absolute lengths (see rect).
#lq.diagram(
height: 3.8cm,
width: 4cm,
lq.path(
((0, 1), (0, -1)),
((.5, 1), (0, 1)),
((0,-1), (0, 1), (0, 1)),
((-.5, 1), (0, -1)),
((0, 1), (0, 1)),
stroke: red + 2pt
)
)
Parameters
..vertices : array
Vertices and curve elements. See the Typst built-in path function.
fill : none | color | gradient | tiling default: none
How to fill the path.
stroke : auto | none | stroke default: auto
How to stroke the path.
closed : bool default: false
Whether to close the path.
tip : none | tiptoe.mark default: none
Places an arrow tip on the curve. This expects a mark as specified by the tiptoe package.
toe : none | tiptoe.mark default: none
Places an arrow tail on the curve. This expects a mark as specified by the tiptoe package.
label : content default: none
The legend label for this plot. See plot.label.
clip : bool default: true
Whether to clip the plot to the data area. See plot.clip.
z-index : int | float default: 2
Determines the position of this plot in the order of rendered diagram objects.
See plot.z-index.