1071 lines (839 with data), 70.4 kB
@header@
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="matplotlib.html"><font color="#ffffff">matplotlib</font></a>.dates</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/dates.py">/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/dates.py</a></font></td></tr></table>
<p><tt>Matplotlib provides sophisticated date plotting capabilities, standing<br>
on the shoulders of python datetime, the add-on modules pytz and<br>
dateutils. datetime objects are converted to floating point numbers<br>
which represent the number of days since 0001-01-01 UTC. The helper<br>
functions date2num, num2date and drange are used to facilitate easy<br>
conversion to and from datetime and numeric ranges.<br>
<br>
A wide range of specific and general purpose date tick locators and<br>
formatters are provided in this module. See matplotlib.tickers for<br>
general information on tick locators and formatters. These are<br>
described below.<br>
<br>
All the matplotlib date converters, tickers and formatters are<br>
timezone aware, and the default timezone is given by the timezone<br>
parameter in your matplotlibrc file. If you leave out a tz timezone<br>
instance, the default from your rc file will be assumed. If you want<br>
to use a custom time zone, pass a pytz.timezone instance<br>
with the tz keyword argument to num2date, plot_date, and any custom<br>
date tickers or locators you create. See <a href="http://pytz.sourceforge.net">http://pytz.sourceforge.net</a><br>
for information on pytz and timezone handling.<br>
<br>
The dateutil module (<a href="http://labix.org/python-dateutil">http://labix.org/python-dateutil</a>)<br>
provides additional code to handle<br>
date ticking, making it easy to place ticks on any kinds of dates -<br>
see examples below.<br>
<br>
Date tickers -<br>
<br>
Most of the date tickers can locate single or multiple values. Eg<br>
<br>
# tick on mondays every week<br>
loc = <a href="#WeekdayLocator">WeekdayLocator</a>(byweekday=MO, tz=tz)<br>
<br>
# tick on mondays and saturdays<br>
loc = <a href="#WeekdayLocator">WeekdayLocator</a>(byweekday=(MO, SA))<br>
<br>
In addition, most of the constructors take an interval argument.<br>
<br>
# tick on mondays every second week<br>
loc = <a href="#WeekdayLocator">WeekdayLocator</a>(byweekday=MO, interval=2)<br>
<br>
The <a href="#rrule">rrule</a> locator allows completely general date ticking<br>
<br>
# tick every 5th easter<br>
rule = rrulewrapper(YEARLY, byeaster=1, interval=5)<br>
loc = <a href="#RRuleLocator">RRuleLocator</a>(rule)<br>
<br>
Here are all the date tickers<br>
<br>
* <a href="#MinuteLocator">MinuteLocator</a> - locate minutes<br>
<br>
* <a href="#HourLocator">HourLocator</a> - locate hours<br>
<br>
* <a href="#DayLocator">DayLocator</a> - locate specifed days of the month<br>
<br>
* <a href="#WeekdayLocator">WeekdayLocator</a> - Locate days of the week, eg MO, TU<br>
<br>
* <a href="#MonthLocator">MonthLocator</a> - locate months, eg 7 for july<br>
<br>
* <a href="#YearLocator">YearLocator</a> - locate years that are multiples of base<br>
<br>
* <a href="#RRuleLocator">RRuleLocator</a> - locate using a matplotlib.dates.rrulewrapper.<br>
The rrulewrapper is a simple wrapper around a dateutils.<a href="#rrule">rrule</a><br>
https://moin.conectiva.com.br/DateUtil which allow almost<br>
arbitrary date tick specifications. See<br>
examples/date_demo_rrule.py<br>
<br>
<br>
Date formatters<br>
<br>
<a href="#DateFormatter">DateFormatter</a> - use strftime format strings<br>
<br>
DateIndexFormatter - date plots with implicit x indexing.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="matplotlib.cbook.html">matplotlib.cbook</a><br>
<a href="datetime.html">datetime</a><br>
<a href="dateutil.html">dateutil</a><br>
</td><td width="25%" valign=top><a href="math.html">math</a><br>
<a href="matplotlib.html">matplotlib</a><br>
<a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top><a href="pytz.html">pytz</a><br>
<a href="re.html">re</a><br>
<a href="matplotlib.ticker.html">matplotlib.ticker</a><br>
</td><td width="25%" valign=top><a href="time.html">time</a><br>
<a href="matplotlib.units.html">matplotlib.units</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="dateutil.relativedelta.html#relativedelta">dateutil.relativedelta.relativedelta</a>
</font></dt><dt><font face="helvetica, arial"><a href="dateutil.rrule.html#rrulebase">dateutil.rrule.rrulebase</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dateutil.rrule.html#rrule">dateutil.rrule.rrule</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>(<a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="matplotlib.dates.html#DateFormatter">DateFormatter</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#IndexDateFormatter">IndexDateFormatter</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>(<a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="matplotlib.dates.html#DateLocator">DateLocator</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="matplotlib.dates.html#DayLocator">DayLocator</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#HourLocator">HourLocator</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#MinuteLocator">MinuteLocator</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#MonthLocator">MonthLocator</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#SecondLocator">SecondLocator</a>
</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.dates.html#WeekdayLocator">WeekdayLocator</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="matplotlib.dates.html#YearLocator">YearLocator</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="DateFormatter">class <strong>DateFormatter</strong></a>(<a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Tick location is seconds since the epoch. Use a strftime format<br>
string<br>
<br>
python only supports datetime strftime formatting for years<br>
greater than 1900. Thanks to Andrew Dalke, Dalke Scientific<br>
Software who contributed the strftime code below to include dates<br>
earlier than this year<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#DateFormatter">DateFormatter</a></dd>
<dd><a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="DateFormatter-__call__"><strong>__call__</strong></a>(self, x, pos<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="DateFormatter-__init__"><strong>__init__</strong></a>(self, fmt, tz<font color="#909090">=None</font>)</dt><dd><tt>fmt is an strftime format string; tz is the tzinfo instance</tt></dd></dl>
<dl><dt><a name="DateFormatter-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="DateFormatter-strftime"><strong>strftime</strong></a>(self, dt, fmt)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>illegal_s</strong> = <_sre.SRE_Pattern object at 0x149d280></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>:<br>
<dl><dt><a name="DateFormatter-fix_minus"><strong>fix_minus</strong></a>(self, s)</dt><dd><tt>some classes may want to replace a hyphen for minus with the<br>
proper unicode symbol as described here<br>
<br>
<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1962574&group_id=80706&atid=560720">http://sourceforge.net/tracker/index.php?func=detail&aid=1962574&group_id=80706&atid=560720</a>.<br>
The default is to do nothing<br>
<br>
Note, if you use this method, eg in format_data or call, you<br>
probably don't want to use it for format_data_short since the<br>
toolbar uses this for interative coord reporting and I doubt<br>
we can expect GUIs across platforms will handle the unicode<br>
correctly. So for now the classes that override fix_minus<br>
should have an explicit format_data_short method</tt></dd></dl>
<dl><dt><a name="DateFormatter-format_data"><strong>format_data</strong></a>(self, value)</dt></dl>
<dl><dt><a name="DateFormatter-format_data_short"><strong>format_data_short</strong></a>(self, value)</dt><dd><tt>return a short string version</tt></dd></dl>
<dl><dt><a name="DateFormatter-get_offset"><strong>get_offset</strong></a>(self)</dt></dl>
<dl><dt><a name="DateFormatter-set_locs"><strong>set_locs</strong></a>(self, locs)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>:<br>
<dl><dt><strong>locs</strong> = []</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="DateFormatter-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="DateFormatter-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="DateFormatter-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DateFormatter-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DateFormatter-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="DateLocator">class <strong>DateLocator</strong></a>(<a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="DateLocator-__init__"><strong>__init__</strong></a>(self, tz<font color="#909090">=None</font>)</dt><dd><tt>tz is the tzinfo instance</tt></dd></dl>
<dl><dt><a name="DateLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="DateLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DateLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="DateLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="DateLocator-__call__"><strong>__call__</strong></a>(self)</dt><dd><tt>Return the locations of the ticks</tt></dd></dl>
<dl><dt><a name="DateLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>autoscale the view limits</tt></dd></dl>
<dl><dt><a name="DateLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="DateLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="DateLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="DateLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="DateLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="DateLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DateLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DateLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="DayLocator">class <strong>DayLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each day of the month, eg 1, 15, 30<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#DayLocator">DayLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="DayLocator-__init__"><strong>__init__</strong></a>(self, bymonthday<font color="#909090">=None</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every day in bymonthday; bymonthday can be an int or sequence<br>
<br>
Default is to tick every day of the month - bymonthday=range(1,32)</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="DayLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="DayLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="DayLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="DayLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DayLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="DayLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="DayLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="DayLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="DayLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="DayLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="DayLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="DayLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DayLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="DayLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="HourLocator">class <strong>HourLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each hour<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#HourLocator">HourLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="HourLocator-__init__"><strong>__init__</strong></a>(self, byhour<font color="#909090">=None</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every hour in byhour; byhour can be an int or sequence.<br>
Default is to tick every hour - byhour=range(24)<br>
<br>
interval is the interval between each iteration. Eg, if<br>
interval=2, mark every second occurance</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="HourLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="HourLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="HourLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="HourLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="HourLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="HourLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="HourLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="HourLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="HourLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="HourLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="HourLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="HourLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="HourLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="HourLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="IndexDateFormatter">class <strong>IndexDateFormatter</strong></a>(<a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Use with IndexLocator to cycle format strings by index.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#IndexDateFormatter">IndexDateFormatter</a></dd>
<dd><a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="IndexDateFormatter-__call__"><strong>__call__</strong></a>(self, x, pos<font color="#909090">=0</font>)</dt><dd><tt>Return the label for time x at position pos</tt></dd></dl>
<dl><dt><a name="IndexDateFormatter-__init__"><strong>__init__</strong></a>(self, t, fmt, tz<font color="#909090">=None</font>)</dt><dd><tt>t is a sequence of dates floating point days). fmt is a<br>
strftime format string</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>:<br>
<dl><dt><a name="IndexDateFormatter-fix_minus"><strong>fix_minus</strong></a>(self, s)</dt><dd><tt>some classes may want to replace a hyphen for minus with the<br>
proper unicode symbol as described here<br>
<br>
<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1962574&group_id=80706&atid=560720">http://sourceforge.net/tracker/index.php?func=detail&aid=1962574&group_id=80706&atid=560720</a>.<br>
The default is to do nothing<br>
<br>
Note, if you use this method, eg in format_data or call, you<br>
probably don't want to use it for format_data_short since the<br>
toolbar uses this for interative coord reporting and I doubt<br>
we can expect GUIs across platforms will handle the unicode<br>
correctly. So for now the classes that override fix_minus<br>
should have an explicit format_data_short method</tt></dd></dl>
<dl><dt><a name="IndexDateFormatter-format_data"><strong>format_data</strong></a>(self, value)</dt></dl>
<dl><dt><a name="IndexDateFormatter-format_data_short"><strong>format_data_short</strong></a>(self, value)</dt><dd><tt>return a short string version</tt></dd></dl>
<dl><dt><a name="IndexDateFormatter-get_offset"><strong>get_offset</strong></a>(self)</dt></dl>
<dl><dt><a name="IndexDateFormatter-set_locs"><strong>set_locs</strong></a>(self, locs)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#Formatter">matplotlib.ticker.Formatter</a>:<br>
<dl><dt><strong>locs</strong> = []</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="IndexDateFormatter-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="IndexDateFormatter-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="IndexDateFormatter-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="IndexDateFormatter-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="IndexDateFormatter-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="MinuteLocator">class <strong>MinuteLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each minute<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#MinuteLocator">MinuteLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="MinuteLocator-__init__"><strong>__init__</strong></a>(self, byminute<font color="#909090">=None</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every minute in byminute; byminute can be an int or<br>
sequence. default is to tick every minute - byminute=range(60)<br>
<br>
interval is the interval between each iteration. Eg, if<br>
interval=2, mark every second occurance</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="MinuteLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="MinuteLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="MinuteLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="MinuteLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MinuteLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="MinuteLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="MinuteLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="MinuteLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="MinuteLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="MinuteLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="MinuteLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="MinuteLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MinuteLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MinuteLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="MonthLocator">class <strong>MonthLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each month month, eg 1, 3, 12<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#MonthLocator">MonthLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="MonthLocator-__init__"><strong>__init__</strong></a>(self, bymonth<font color="#909090">=None</font>, bymonthday<font color="#909090">=1</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every month in bymonth; bymonth can be an int or<br>
sequence. default is range(1,13), ie every month<br>
<br>
interval is the interval between each iteration. Eg, if<br>
interval=2, mark every second occurance</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="MonthLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="MonthLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="MonthLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="MonthLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MonthLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="MonthLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="MonthLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="MonthLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="MonthLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="MonthLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="MonthLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="MonthLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MonthLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="MonthLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="RRuleLocator">class <strong>RRuleLocator</strong></a>(<a href="matplotlib.dates.html#DateLocator">DateLocator</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RRuleLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="RRuleLocator-__init__"><strong>__init__</strong></a>(self, o, tz<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RRuleLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="RRuleLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="RRuleLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="RRuleLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="RRuleLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="RRuleLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="RRuleLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="RRuleLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="RRuleLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="RRuleLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="RRuleLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="RRuleLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="RRuleLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="SecondLocator">class <strong>SecondLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each second<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#SecondLocator">SecondLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="SecondLocator-__init__"><strong>__init__</strong></a>(self, bysecond<font color="#909090">=None</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every second in bysecond; bysecond can be an int or<br>
sequence. Default is to tick every second bysecond = range(60)<br>
<br>
interval is the interval between each iteration. Eg, if<br>
interval=2, mark every second occurance</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="SecondLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="SecondLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="SecondLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="SecondLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="SecondLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="SecondLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="SecondLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="SecondLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="SecondLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="SecondLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="SecondLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="SecondLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="SecondLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="SecondLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="WeekdayLocator">class <strong>WeekdayLocator</strong></a>(<a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on occurances of each weekday<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#WeekdayLocator">WeekdayLocator</a></dd>
<dd><a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WeekdayLocator-__init__"><strong>__init__</strong></a>(self, byweekday<font color="#909090">=1</font>, interval<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark every weekday in byweekday; byweekday can be a number or<br>
sequence<br>
<br>
elements of byweekday must be one of MO, TU, WE, TH, FR, SA,<br>
SU, the constants from dateutils.<a href="#rrule">rrule</a><br>
<br>
interval specifies the number of weeks to skip. Ie interval=2<br>
plots every second week</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#RRuleLocator">RRuleLocator</a>:<br>
<dl><dt><a name="WeekdayLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="WeekdayLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="WeekdayLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="WeekdayLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="WeekdayLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="WeekdayLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="WeekdayLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="WeekdayLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="WeekdayLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="WeekdayLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="WeekdayLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="WeekdayLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="WeekdayLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="WeekdayLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="YearLocator">class <strong>YearLocator</strong></a>(<a href="matplotlib.dates.html#DateLocator">DateLocator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Make ticks on a given day of each year that is a multiple of base.<br>
<br>
Examples:<br>
# Tick every year on Jan 1st<br>
locator = <a href="#YearLocator">YearLocator</a>()<br>
<br>
# Tick every 5 years on July 4th<br>
locator = <a href="#YearLocator">YearLocator</a>(5, month=7, day=4)<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="matplotlib.dates.html#YearLocator">YearLocator</a></dd>
<dd><a href="matplotlib.dates.html#DateLocator">DateLocator</a></dd>
<dd><a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a></dd>
<dd><a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="YearLocator-__call__"><strong>__call__</strong></a>(self)</dt></dl>
<dl><dt><a name="YearLocator-__init__"><strong>__init__</strong></a>(self, base<font color="#909090">=1</font>, month<font color="#909090">=1</font>, day<font color="#909090">=1</font>, tz<font color="#909090">=None</font>)</dt><dd><tt>mark years that are multiple of base on a given month and day<br>
(default jan 1)</tt></dd></dl>
<dl><dt><a name="YearLocator-autoscale"><strong>autoscale</strong></a>(self)</dt><dd><tt>Set the view limits to include the data range</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><a name="YearLocator-datalim_to_dt"><strong>datalim_to_dt</strong></a>(self)</dt></dl>
<dl><dt><a name="YearLocator-nonsingular"><strong>nonsingular</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="YearLocator-set_tzinfo"><strong>set_tzinfo</strong></a>(self, tz)</dt></dl>
<dl><dt><a name="YearLocator-viewlim_to_dt"><strong>viewlim_to_dt</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.dates.html#DateLocator">DateLocator</a>:<br>
<dl><dt><strong>hms0d</strong> = {'byhour': 0, 'byminute': 0, 'bysecond': 0}</dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#Locator">matplotlib.ticker.Locator</a>:<br>
<dl><dt><a name="YearLocator-pan"><strong>pan</strong></a>(self, numsteps)</dt><dd><tt>Pan numticks (can be positive or negative)</tt></dd></dl>
<dl><dt><a name="YearLocator-refresh"><strong>refresh</strong></a>(self)</dt><dd><tt>refresh internal information based on current lim</tt></dd></dl>
<dl><dt><a name="YearLocator-zoom"><strong>zoom</strong></a>(self, direction)</dt><dd><tt>Zoom in/out on axis; if direction is >0 zoom in, else zoom out</tt></dd></dl>
<hr>
Methods inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><a name="YearLocator-create_dummy_axis"><strong>create_dummy_axis</strong></a>(self)</dt></dl>
<dl><dt><a name="YearLocator-set_axis"><strong>set_axis</strong></a>(self, axis)</dt></dl>
<dl><dt><a name="YearLocator-set_bounds"><strong>set_bounds</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="YearLocator-set_data_interval"><strong>set_data_interval</strong></a>(self, vmin, vmax)</dt></dl>
<dl><dt><a name="YearLocator-set_view_interval"><strong>set_view_interval</strong></a>(self, vmin, vmax)</dt></dl>
<hr>
Data and other attributes inherited from <a href="matplotlib.ticker.html#TickHelper">matplotlib.ticker.TickHelper</a>:<br>
<dl><dt><strong>DummyAxis</strong> = <class matplotlib.ticker.DummyAxis at 0x14cdcb0></dl>
<dl><dt><strong>axis</strong> = None</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="relativedelta">class <strong>relativedelta</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>The <a href="#relativedelta">relativedelta</a> type is based on the specification of the excelent<br>
work done by M.-A. Lemburg in his mx.DateTime extension. However,<br>
notice that this type does *NOT* implement the same algorithm as<br>
his work. Do *NOT* expect it to behave like mx.DateTime's counterpart.<br>
<br>
There's two different ways to build a <a href="#relativedelta">relativedelta</a> instance. The<br>
first one is passing it two date/datetime classes:<br>
<br>
<a href="#relativedelta">relativedelta</a>(datetime1, datetime2)<br>
<br>
And the other way is to use the following keyword arguments:<br>
<br>
year, month, day, hour, minute, second, microsecond:<br>
Absolute information.<br>
<br>
years, months, weeks, days, hours, minutes, seconds, microseconds:<br>
Relative information, may be negative.<br>
<br>
weekday:<br>
One of the weekday instances (MO, TU, etc). These instances may<br>
receive a parameter N, specifying the Nth weekday, which could<br>
be positive or negative (like MO(+1) or MO(-2). Not specifying<br>
it is the same as specifying +1. You can also use an integer,<br>
where 0=MO.<br>
<br>
leapdays:<br>
Will add given days to the date found, if year is a leap<br>
year, and the date found is post 28 of february.<br>
<br>
yearday, nlyearday:<br>
Set the yearday or the non-leap year day (jump leap days).<br>
These are converted to day/month/leapdays information.<br>
<br>
Here is the behavior of operations with <a href="#relativedelta">relativedelta</a>:<br>
<br>
1) Calculate the absolute year, using the 'year' argument, or the<br>
original datetime year, if the argument is not present.<br>
<br>
2) Add the relative 'years' argument to the absolute year.<br>
<br>
3) Do steps 1 and 2 for month/months.<br>
<br>
4) Calculate the absolute day, using the 'day' argument, or the<br>
original datetime day, if the argument is not present. Then,<br>
subtract from the day until it fits in the year and month<br>
found after their operations.<br>
<br>
5) Add the relative 'days' argument to the absolute day. Notice<br>
that the 'weeks' argument is multiplied by 7 and added to<br>
'days'.<br>
<br>
6) Do steps 1 and 2 for hour/hours, minute/minutes, second/seconds,<br>
microsecond/microseconds.<br>
<br>
7) If the 'weekday' argument is present, calculate the weekday,<br>
with the given (wday, nth) tuple. wday is the index of the<br>
weekday (0-6, 0=Mon), and nth is the number of weeks to add<br>
forward or backward, depending on its signal. Notice that if<br>
the calculated date is already Monday, for example, using<br>
(0, 1) or (0, -1) won't change the day.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="relativedelta-__add__"><strong>__add__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__div__"><strong>__div__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__init__"><strong>__init__</strong></a>(self, dt1<font color="#909090">=None</font>, dt2<font color="#909090">=None</font>, years<font color="#909090">=0</font>, months<font color="#909090">=0</font>, days<font color="#909090">=0</font>, leapdays<font color="#909090">=0</font>, weeks<font color="#909090">=0</font>, hours<font color="#909090">=0</font>, minutes<font color="#909090">=0</font>, seconds<font color="#909090">=0</font>, microseconds<font color="#909090">=0</font>, year<font color="#909090">=None</font>, month<font color="#909090">=None</font>, day<font color="#909090">=None</font>, weekday<font color="#909090">=None</font>, yearday<font color="#909090">=None</font>, nlyearday<font color="#909090">=None</font>, hour<font color="#909090">=None</font>, minute<font color="#909090">=None</font>, second<font color="#909090">=None</font>, microsecond<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="relativedelta-__mul__"><strong>__mul__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__neg__"><strong>__neg__</strong></a>(self)</dt></dl>
<dl><dt><a name="relativedelta-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt></dl>
<dl><dt><a name="relativedelta-__radd__"><strong>__radd__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
<dl><dt><a name="relativedelta-__rsub__"><strong>__rsub__</strong></a>(self, other)</dt></dl>
<dl><dt><a name="relativedelta-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="rrule">class <strong>rrule</strong></a>(<a href="dateutil.rrule.html#rrulebase">rrulebase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="rrule-__init__"><strong>__init__</strong></a>(self, freq, dtstart<font color="#909090">=None</font>, interval<font color="#909090">=1</font>, wkst<font color="#909090">=None</font>, count<font color="#909090">=None</font>, until<font color="#909090">=None</font>, bysetpos<font color="#909090">=None</font>, bymonth<font color="#909090">=None</font>, bymonthday<font color="#909090">=None</font>, byyearday<font color="#909090">=None</font>, byeaster<font color="#909090">=None</font>, byweekno<font color="#909090">=None</font>, byweekday<font color="#909090">=None</font>, byhour<font color="#909090">=None</font>, byminute<font color="#909090">=None</font>, bysecond<font color="#909090">=None</font>, cache<font color="#909090">=False</font>)</dt></dl>
<hr>
Methods inherited from <a href="dateutil.rrule.html#rrulebase">rrulebase</a>:<br>
<dl><dt><a name="rrule-__contains__"><strong>__contains__</strong></a>(self, item)</dt></dl>
<dl><dt><a name="rrule-__getitem__"><strong>__getitem__</strong></a>(self, item)</dt></dl>
<dl><dt><a name="rrule-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>
<dl><dt><a name="rrule-after"><strong>after</strong></a>(self, dt, inc<font color="#909090">=False</font>)</dt></dl>
<dl><dt><a name="rrule-before"><strong>before</strong></a>(self, dt, inc<font color="#909090">=False</font>)</dt></dl>
<dl><dt><a name="rrule-between"><strong>between</strong></a>(self, after, before, inc<font color="#909090">=False</font>)</dt></dl>
<dl><dt><a name="rrule-count"><strong>count</strong></a>(self)</dt><dd><tt># __len__() introduces a large performance penality.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-date2num"><strong>date2num</strong></a>(d)</dt><dd><tt>d is either a datetime instance or a sequence of datetimes<br>
<br>
return value is a floating point number (or sequence of floats)<br>
which gives number of days (fraction part represents hours,<br>
minutes, seconds) since 0001-01-01 00:00:00 UTC</tt></dd></dl>
<dl><dt><a name="-drange"><strong>drange</strong></a>(dstart, dend, delta)</dt><dd><tt>Return a date range as float gregorian ordinals. dstart and dend<br>
are datetime instances. delta is a datetime.timedelta instance</tt></dd></dl>
<dl><dt><a name="-epoch2num"><strong>epoch2num</strong></a>(e)</dt><dd><tt>convert an epoch or sequence of epochs to the new date format,<br>
days since 0001</tt></dd></dl>
<dl><dt><a name="-hours"><strong>hours</strong></a>(h)</dt><dd><tt>return hours as days</tt></dd></dl>
<dl><dt><a name="-minutes"><strong>minutes</strong></a>(m)</dt><dd><tt>return minutes as days</tt></dd></dl>
<dl><dt><a name="-mx2num"><strong>mx2num</strong></a>(mxdates)</dt><dd><tt>Convert mx datetime instance (or sequence of mx instances) to the<br>
new date format,</tt></dd></dl>
<dl><dt><a name="-num2date"><strong>num2date</strong></a>(x, tz<font color="#909090">=None</font>)</dt><dd><tt>x is a float value which gives number of days (fraction part<br>
represents hours, minutes, seconds) since 0001-01-01 00:00:00 UTC<br>
<br>
Return value is a datetime instance in timezone tz (default to<br>
rcparams TZ value)<br>
<br>
if x is a sequence, a sequence of datetimes will be returned</tt></dd></dl>
<dl><dt><a name="-num2epoch"><strong>num2epoch</strong></a>(d)</dt><dd><tt>convert days since 0001 to epoch. d can be a number or sequence</tt></dd></dl>
<dl><dt><a name="-seconds"><strong>seconds</strong></a>(s)</dt><dd><tt>return seconds as days</tt></dd></dl>
<dl><dt><a name="-weeks"><strong>weeks</strong></a>(w)</dt><dd><tt>return weeks as days</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>DAILY</strong> = 3<br>
<strong>FR</strong> = FR<br>
<strong>HOURLY</strong> = 4<br>
<strong>MINUTELY</strong> = 5<br>
<strong>MO</strong> = MO<br>
<strong>MONTHLY</strong> = 1<br>
<strong>SA</strong> = SA<br>
<strong>SECONDLY</strong> = 6<br>
<strong>SU</strong> = SU<br>
<strong>TH</strong> = TH<br>
<strong>TU</strong> = TU<br>
<strong>WE</strong> = WE<br>
<strong>WEEKLY</strong> = 2<br>
<strong>YEARLY</strong> = 0<br>
<strong>__all__</strong> = ('date2num', 'num2date', 'drange', 'epoch2num', 'num2epoch', 'mx2num', 'DateFormatter', 'IndexDateFormatter', 'DateLocator', 'RRuleLocator', 'YearLocator', 'MonthLocator', 'WeekdayLocator', 'DayLocator', 'HourLocator', 'MinuteLocator', 'SecondLocator', 'rrule', 'MO', 'TU', ...)</td></tr></table>
@footer@