Skip to main content

vlines

lq.vlines(..x, min=auto, max=auto, line=black, label=none, z-index=2)

Draws a set of vertical lines into the diagram.

#lq.diagram(
ylim: (0, 7),
lq.vlines(1, 1.1, line: teal, label: "Indefinite"),
lq.vlines(2, line: blue, min: 2, label: "Fixed start"),
lq.vlines(3, line: purple, max: 2, label: "Fixed end"),
lq.vlines(4, line: red, min: 1, max: 3, label: "Fixed"),
)
Parameters

..x : int | float

The xx coordinate(s) of one or more vertical lines to draw.

min : auto | int | float    default: auto

The beginning of the line as yy coordinate. If set to auto, the line will always start at the bottom of the diagram.

max : auto | int | float    default: auto

The end of the line as yy coordinate. If set to auto, the line will always end at the top of the diagram.

line : stroke    default: black

How to stroke the lines.

label : content    default: none

The legend label for this plot. See plot.label.

z-index : int | float    default: 2

Determines the zz position of this plot in the order of rendered diagram objects. See plot.z-index.