Skip to main content

months

lq.tick-locate.months(x0, x1, steps: (1, 2, 3, 6, 12), filter: time => true, num-ticks-suggestion: 5, density: 100%, ..args)(source)

Locates months on a datetime interval.

Parameters

x0 : float

The start of the range to locate ticks for.

x1 : float

The end of the range to locate ticks for.

steps : array    default: (1, 2, 3, 6, 12)

Which steps are possible between months.

filter : function    default: time => true

Specifies a filter that can be used to filter out ticks.

num-ticks-suggestion : int | float    default: 5

Suggested number of ticks to use. This may for example be chosen according to the length of the axis and the font size.

density : ratio    default: 100%

The density of ticks. This can be used as a qualitative knob to tune the number of generated ticks in relation to the suggested number of ticks.

..args : any

Ignored arguments that do not apply to this locator.