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:
- locator
matplotlib.ticker.Locatorsubclass 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
betweenor axis limits.- everyfloat
Choose locations at this interval of separation (in data units).
- betweenpair of floats
Bound upper / lower ticks when using
everyorcount.- minorint
Number of unlabeled ticks to draw between labeled “major” ticks.
- locator
- Returns:
- scale
Copy of self with new tick configuration.
- label(formatter=None, *, like=None, base=<default>, unit=None)#
Configure the appearance of tick labels for the scale’s axis or legend.
- Parameters:
- formatter
matplotlib.ticker.Formattersubclass 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 namedxand/orpos(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. Set to
Noneto override the default formatter with a log transform.- unitstr or (str, str) tuple
Use SI prefixes with these units (e.g., with
unit="g", a tick value of 5000 will appear as5 kg). When a tuple, the first element gives the separator between the number and unit.
- formatter
- Returns:
- scale
Copy of self with new label configuration.