| |
- matplotlib.ticker.Formatter(matplotlib.ticker.TickHelper)
-
- DateFormatter
- IndexDateFormatter
- matplotlib.ticker.Locator(matplotlib.ticker.TickHelper)
-
- DateLocator
-
- RRuleLocator
-
- DayLocator
- HourLocator
- MinuteLocator
- MonthLocator
- SecondLocator
- WeekdayLocator
- YearLocator
- rrulewrapper
class DateFormatter(matplotlib.ticker.Formatter) |
|
Tick location is seconds since the epoch. Use a strftime format
string
python only supports datetime strftime formatting for years
greater than 1900. Thanks to Andrew Dalke, Dalke Scientific
Software who contributed the strftime code below to include dates
earlier than this year |
|
- Method resolution order:
- DateFormatter
- matplotlib.ticker.Formatter
- matplotlib.ticker.TickHelper
Methods defined here:
- __call__(self, x, pos=0)
- __init__(self, fmt, tz=None)
- fmt is an strftime format string; tz is the tzinfo instance
- set_tzinfo(self, tz)
- strftime(self, dt, fmt)
Data and other attributes defined here:
- illegal_s = <_sre.SRE_Pattern object>
Methods inherited from matplotlib.ticker.Formatter:
- set_locs(self, locs)
Data and other attributes inherited from matplotlib.ticker.Formatter:
- locs = None
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class DateLocator(matplotlib.ticker.Locator) |
| |
- Method resolution order:
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, tz=None)
- tz is the tzinfo instance
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes defined here:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- autoscale the view limits
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class DayLocator(RRuleLocator) |
|
Make ticks on occurances of each day of the month, eg 1, 15, 30 |
|
- Method resolution order:
- DayLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, bymonthday=None, interval=1, tz=None)
- mark every day in bymonthday; bymonthday can be an int or sequence
Default is to tick every day of the month - bymonthday=range(1,32)
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class HourLocator(RRuleLocator) |
|
Make ticks on occurances of each hour |
|
- Method resolution order:
- HourLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, byhour=None, interval=1, tz=None)
- mark every hour in byhour; byhour can be an int or sequence.
Default is to tick every hour - byhour=range(24)
interval is the interval between each iteration. Eg, if
interval=2, mark every second occurance
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class MinuteLocator(RRuleLocator) |
|
Make ticks on occurances of each minute |
|
- Method resolution order:
- MinuteLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, byminute=None, interval=1, tz=None)
- mark every minute in byminute; byminute can be an int or
sequence. default is to tick every minute - byminute=range(60)
interval is the interval between each iteration. Eg, if
interval=2, mark every second occurance
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class MonthLocator(RRuleLocator) |
|
Make ticks on occurances of each month month, eg 1, 3, 12 |
|
- Method resolution order:
- MonthLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, bymonth=None, bymonthday=1, interval=1, tz=None)
- mark every month in bymonth; bymonth can be an int or
sequence. default is range(1,13), ie every month
interval is the interval between each iteration. Eg, if
interval=2, mark every second occurance
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class RRuleLocator(DateLocator) |
| |
- Method resolution order:
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __call__(self)
- __init__(self, o, tz=None)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class SecondLocator(RRuleLocator) |
|
Make ticks on occurances of each second |
|
- Method resolution order:
- SecondLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, bysecond=None, interval=1, tz=None)
- mark every second in bysecond; bysecond can be an int or
sequence. Default is to tick every second bysecond = range(60)
interval is the interval between each iteration. Eg, if
interval=2, mark every second occurance
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class WeekdayLocator(RRuleLocator) |
|
Make ticks on occurances of each weekday |
|
- Method resolution order:
- WeekdayLocator
- RRuleLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __init__(self, byweekday=1, interval=1, tz=None)
- mark every weekday in byweekday; byweekday can be a number or
sequence
elements of byweekday must be one of MO, TU, WE, TH, FR, SA,
SU, the constants from dateutils.rrule
interval specifies the number of weeks to skip. Ie interval=2
plots every second week
Methods inherited from RRuleLocator:
- __call__(self)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
class YearLocator(DateLocator) |
|
Make ticks on a given day of each year that is a multiple of base.
Examples:
# Tick every year on Jan 1st
locator = YearLocator()
# Tick every 5 years on July 4th
locator = YearLocator(5, month=7, day=4) |
|
- Method resolution order:
- YearLocator
- DateLocator
- matplotlib.ticker.Locator
- matplotlib.ticker.TickHelper
Methods defined here:
- __call__(self)
- __init__(self, base=1, month=1, day=1, tz=None)
- mark years that are multiple of base on a given month and day
(default jan 1)
- autoscale(self)
- Set the view limits to include the data range
Methods inherited from DateLocator:
- datalim_to_dt(self)
- set_tzinfo(self, tz)
- viewlim_to_dt(self)
Data and other attributes inherited from DateLocator:
- hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}
Methods inherited from matplotlib.ticker.Locator:
- nonsingular(self, vmin, vmax)
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from matplotlib.ticker.TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from matplotlib.ticker.TickHelper:
- dataInterval = None
- viewInterval = None
|
|