Skip to main content

seconds

lq.tick-locate.seconds(x0, x1, num-ticks-suggestion=5, density=100%, steps=(1, 2, 5, 10, 15, 20, 30, 60), filter=time => true, ..args)(source)

Locates seconds 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.

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.

steps : array    default: (1, 2, 5, 10, 15, 20, 30, 60)

Which steps are possible between secondsy.

filter : function    default: time => true

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

..args : any

Ignored arguments that do not apply to this locator.