Skip to main content

symlog

lq.tick-locate.symlog(x0, x1, base=10, threshold=1, linscale=1, num-ticks-suggestion=5, max-ticks=200, density=100%, ..args)(source)

Locates linear ticks on a symlog axis with range [x0,x1][x_0, x_1]. The range may be inverted, i.e., x0>x1x_0>x_1 but not x0=x1x_0 = x_1. Ticks are placed on powers of the base or if the range is too large, on every other power of the base (starting with the lower limit). In this case, the density of the ticks is determined by num-ticks-suggestion. This function returns a dictionary with the key ticks containing an array of tick positions.

Parameters

x0 : float

The start of the range to locate ticks for.

x1 : float

The end of the range to locate ticks for.

base : int    default: 10

The base of the logarithmic axis.

threshold : float    default: 1

The threshold for the linear region.

linscale : float    default: 1

The scaling of the linear region.

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.

max-ticks : int    default: 200

The maximum number of ticks to generate. This guard prevents an accidental generation of a huge number of ticks.

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.