another bug in axis limits

John,

this very simple command is broken in 0.5.3:

from matplotlib.matlab import *

plot ([1])

Traceback (most recent call last):

File “”, line 1, in ?

File “/usr/lib/python2.3/site-packages/matplotlib/matlab.py”, line 990, in plot

try: lines =  gca().plot(*args, **kwargs)

File “/usr/lib/python2.3/site-packages/matplotlib/axes.py”, line 1156, in plot self.xaxis.autoscale_view()

File “/usr/lib/python2.3/site-packages/matplotlib/axis.py”, line 405, in autoscale_view

self._majorTicker.locator.autoscale()

File “/usr/lib/python2.3/site-packages/matplotlib/ticker.py”, line 565, in autoscale

self._locator = self.get_locator(d)

File “/usr/lib/python2.3/site-packages/matplotlib/ticker.py”, line 571, in get_locator

ld = log10(d)

OverflowError: math range error

it worked in 0.5.2

What is the problem?

fiocruz4.jpg
Flávio Codeço Coelho, PhD

Programa de Computação Científica

Fundação Oswaldo Cruz

Rio de Janeiro – Brasil

···