<txp:article status="sticky" limit=1 /> ->  Textpattern Warning: Die Werte für Attribute müssen in Hochkommata eingeschlossen werden  on line 916
textpattern/lib/txplib_misc.php:916 trigger_error()
textpattern/publish.php:1090 splat()
textpattern/publish.php:1012 processTags()
textpattern/publish.php:496 parse()
index.php:33 textpattern()
Peterpedia-Flash: A bug in matplotlib?
Übersicht Peterpedia lesen What's up Peterpedia? Administration Suche

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:
  1. >>> from pylab import *
  2. >>> plot_date([1], [1])
  3. []
  4. >>> plot_date([1], [1])
  5. """
  6. Traceback (most recent call last):
  7.   File "", line 1, in
  8.   File "python25\lib\site-packages\matplotlib\pylab.py", line 2064, in plot_date
  9.     ret =  gca().plot_date(*args, **kwargs)
  10.   File "python25\lib\site-packages\matplotlib\axes.py", line 2397, in plot_date
  11.     self.xaxis_date(tz)
  12.   File "python25\lib\site-packages\matplotlib\axes.py", line 1566, in xaxis_date
  13.     formatter = AutoDateFormatter(locator)
  14. UnboundLocalError: local variable 'locator' referenced before assignment
  15. """

patch to matplotlib\axes.py

1560a1561,1562
>         else:
>             locator = thislocator
Artikel bearbeiten