Return the `~matplotlib.units.AxisInfo` for *unit*. *unit* is a `~datetime.tzinfo` instance or None. The *axis* argument is required but not used.
(self, unit, axis)
| 1738 | super().__init__() |
| 1739 | |
| 1740 | def axisinfo(self, unit, axis): |
| 1741 | """ |
| 1742 | Return the `~matplotlib.units.AxisInfo` for *unit*. |
| 1743 | |
| 1744 | *unit* is a `~datetime.tzinfo` instance or None. |
| 1745 | The *axis* argument is required but not used. |
| 1746 | """ |
| 1747 | tz = unit |
| 1748 | |
| 1749 | majloc = AutoDateLocator(tz=tz, |
| 1750 | interval_multiples=self._interval_multiples) |
| 1751 | majfmt = AutoDateFormatter(majloc, tz=tz) |
| 1752 | datemin = datetime.date(1970, 1, 1) |
| 1753 | datemax = datetime.date(1970, 1, 2) |
| 1754 | |
| 1755 | return units.AxisInfo(majloc=majloc, majfmt=majfmt, label='', |
| 1756 | default_limits=(datemin, datemax)) |
| 1757 | |
| 1758 | @staticmethod |
| 1759 | def convert(value, unit, axis): |
no test coverage detected