seaborn.objects.Temporal#

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

用於日期/時間資料的尺度。

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

設定尺度軸或圖例的刻度選擇。

注意

此 API 正在建構中,未來將會增強。

參數:
locatormatplotlib.ticker.Locator 子類別

預先設定的 matplotlib 定位器;其他參數將不會使用。

uptoint

選擇「好」的刻度位置,但不超過此數字。

回傳:
scale

具有新刻度設定的 self 副本。

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

設定尺度軸或圖例的刻度標籤外觀。

注意

此 API 正在建構中,未來將會增強。

參數:
formattermatplotlib.ticker.Formatter 子類別

要使用的預先設定的格式化器;將會忽略其他參數。

concisebool

如果為 True,則使用 matplotlib.dates.ConciseDateFormatter,使刻度標籤盡可能精簡。

回傳:
scale

具有新標籤設定的 self 副本。