Skip to main content

label

lq.label(body, kind="x", dx=0pt, dy=0pt, pad=0.75em, angle=0deg)

A label for a diagram axis.

Parameters

body : any

Content to show in the label.

kind : "x" | "y"    default: "x"

The kind of axis that the label is attached to.

dx : length    default: 0pt

Horizontal offset.

dy : length    default: 0pt

Vertical offset.

pad : none | length    default: 0.75em

Padding between the axis (and its ticks and labels) and the label. When this is set to none, the label is drawn directly on the axis (ignoring the ticks).

angle : angle    default: 0deg

Angle at which the label is drawn. The label of a y axis is often drawn at -90deg.