ticker.py:571 'long' object has no attribute 'log10'


Maybe I've found an error in matplotlib.
When trying to plot an SNMP counter (unsigned 32), I got an error

  File "/usr/lib/python2.2/site-packages/matplotlib/ticker.py", line 571, in
    ld = log10(d)
AttributeError: 'long' object has no attribute 'log10'

Full trace in the attached file.

it is triggered only when calling
ax.set_ylim(0, 2**32-1)
or some other values larger than approx 2 * 10^9

mpl053_ticker_log10.txt (1.88 KB)