4.1. cpforager.diagnostic.get_datetime_locator_formatter
- cpforager.diagnostic.get_datetime_locator_formatter(df, custom_locator=None, custom_formatter=None)
Get the date locator and formatter for timeserie plots.
- Parameters:
df (pandas.DataFrame) – dataframe with a
datetime
column.custom_locator (matplotlib.dates.DayLocator) – data locator.
custom_formatter (matplotlib.dates.DateFormatter) – date formatter.
- Returns:
the date locator and formatter for timeserie plots.
- Return type:
(matplotlib.dates.DayLocator, matplotlib.dates.DateFormatter)