Skip to main content

tick

lq.tick(value, label=none, sub=false, kind="x", stroke=auto, shorten-sub=50%, align=right, pad=0.5em, inset=4pt, outset=0pt)(source)

A tick or subtick on a diagram axis. A tick consists of a tick mark on the axis and a tick label, usually a number denoting the coordinate value.

Parameters

value : float

Position of the tick in data coordinates.

label : content | lq.tick-label    default: none

The label for the tick.

sub : bool    default: false

Whether this is a subtick.

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

The kind of axis that the tick is attached to.

stroke : auto | stroke    default: auto

How to stroke the tick mark. If set to auto, the stroke is inherited the axis spine.

shorten-sub : ratio    default: 50%

How much to shorten sub ticks compared to regular ticks.

align : left | top | right | bottom    default: right

Where to align the tick. For example, if set to right, the tick label is shown to the left of the tick, aligning at its right side. For example, ticks on a yy-axis on the left side of the diagram will typically be aligned on the right.

pad : length    default: 0.5em

The padding to add between the tick and the tick label.

inset : length    default: 4pt

The length of the tick on the inside of the axis. Here, the tick label is considered to be on the outside. For example, if tick.align is set to right, the inset determines the tick length to the right of the axis spine.

outset : length    default: 0pt

Length of the tick on the outside of the axis, see tick.inset. For example, if tick.align is set to right, the inset determines the tick length to the left of the axis spine.