A bug in matplotlib? · Mai 20, 21:14 von stargaming
I’m just abusing this place to temporarily store the bug report, going to submit it to matplotlib’s bug tracker later.
>>> from pylab import * >>> plot([1], [1]) [<matplotlib.lines.Line2D instance at 0x013A1378>] >>> plot([1], [1]) [<matplotlib.lines.Line2D instance at 0x013A13F0>] </txp:krl_geshiSyntaxHighlight>
python:
- >>> from pylab import *
- >>> plot_date([1], [1])
- []
- >>> plot_date([1], [1])
- """
- Traceback (most recent call last):
- File "", line 1, in
- File "python25\lib\site-packages\matplotlib\pylab.py", line 2064, in plot_date
- ret = gca().plot_date(*args, **kwargs)
- File "python25\lib\site-packages\matplotlib\axes.py", line 2397, in plot_date
- self.xaxis_date(tz)
- File "python25\lib\site-packages\matplotlib\axes.py", line 1566, in xaxis_date
- formatter = AutoDateFormatter(locator)
- UnboundLocalError: local variable 'locator' referenced before assignment
- """
patch to matplotlib\axes.py
1560a1561,1562
> else:
> locator = thislocator

Struggling with Ubuntu Making of "Spam: Leihgaben ausgewertet"
