AutoCFDatetimeLocator
- class AutoCFDatetimeLocator(maxticks=None, calendar='standard', date_unit=None, minticks=3)[source]
Bases:
LocatorDetermines tick locations when plotting
cftime.datetimedata.Attributes Summary
Methods Summary
__call__()Return the locations of the ticks.
compute_resolution(num1, num2, date1, date2)Returns the resolution of the dates.
set_params([maxticks, minticks, ...])Set the parameters for the locator.
tick_values(vmin, vmax)Return the values of the located ticks given vmin and vmax.
Attributes Documentation
- real_world_calendars = ['standard', 'gregorian', 'proleptic_gregorian', 'noleap', 'julian', 'all_leap', '365_day', '366_day', '360_day']
Methods Documentation
- compute_resolution(num1, num2, date1, date2)[source]
Returns the resolution of the dates. Also updates self.calendar from date1 for consistency.