seaborn.objects.Temporal#

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

A scale for date/time data.

tick(locator=None, *, upto=None)#

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

Note

This API is under construction and will be enhanced over time.

Parameters:
locatormatplotlib.ticker.Locator subclass

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

uptoint

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

Returns:
scale

Copy of self with new tick configuration.

label(formatter=None, *, concise=False)#

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

Note

This API is under construction and will be enhanced over time.

Parameters:
formattermatplotlib.ticker.Formatter subclass

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

concisebool

If True, use matplotlib.dates.ConciseDateFormatter to make the tick labels as compact as possible.

Returns:
scale

Copy of self with new label configuration.