newbie question about math range errors

Hi all,

I've only started using matplotlib very recently, and it's hugely
impressive. My current plotting is (occasionally) failing with the
error copied below (Fedora Core 4 standard install, Python 2.4...).
Does anyone know what causes this and whether I can tell from the data
being plotted whether it might happen? Sorry if that's a dumb
question, but ....

Many thanks!

Sarah

matplotlib error report:

  File "./random_error3d.py", line 142, in plot_results
    pylab.plot(x, y0, 'ro', x, y1, 'g^', x, y2, 'b+')
  File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line
2129, in plot
    ret = gca().plot(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 2792, in plot
    self.autoscale_view()
  File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
817, in autoscale_view
    self.set_ylim(locator.autoscale())
  File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
797, in autoscale
    return take(self.bin_boundaries(dmin, dmax), [0,-1])
  File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
767, in bin_boundaries
    scale, offset = scale_range(vmin, vmax, nbins)
  File "/usr/lib/python2.4/site-packages/matplotlib/ticker.py", line
738, in scale_range
    ex = divmod(math.log10(meanv), 1)[0]
OverflowError: math range error

···

--
http://www.mis.coventry.ac.uk/research/imd/
http://varspool.blogspot.com