seaborn.objects.Continuous#

class seaborn.objects.Continuous(values=None, norm=None, trans=None)#

A numeric scale supporting norms and functional transforms.

tick(locator=None, *, at=None, upto=None, count=None, every=None, between=None, minor=None)#

Configure the selection of ticks for the scale’s axis or legend.

Parameters:
locatormatplotlib.ticker.Locator subclass

Pre-configured matplotlib locator; other parameters will not be used.

atsequence of floats

Place ticks at these specific locations (in data units).

uptoint

Choose “nice” locations for ticks, but do not exceed this number.

countint

Choose exactly this number of ticks, bounded by between or axis limits.

everyfloat

Choose locations at this interval of separation (in data units).

betweenpair of floats

Bound upper / lower ticks when using every or count.

minorint

Number of unlabeled ticks to draw between labeled “major” ticks.

Returns:
scale

Copy of self with new tick configuration.

label(formatter=None, *, like=None, base=None, unit=None)#

Configure the appearance of tick labels for the scale’s axis or legend.

Parameters:
formattermatplotlib.ticker.Formatter subclass

Pre-configured formatter to use; other parameters will be ignored.

likestr or callable

Either a format pattern (e.g., ".2f"), a format string with fields named x and/or pos (e.g., "${x:.2f}"), or a callable that consumes a number and returns a string.

basenumber

Use log formatter (with scientific notation) having this value as the base.

unitstr or (str, str) tuple

Use SI prefixes with these units (e.g., with unit="g", a tick value of 5000 will appear as 5 kg). When a tuple, the first element gives the separator between the number and unit.

Returns:
scale

Copy of self with new label configuration.