[SciPy-user] recursion limit in plot

Neal Becker ndbecker2@gmail....
Thu Jan 15 09:39:50 CST 2009


What's wrong here?
This code snippet:

from pylab import plot, show
print Id
print pout

plot (Id, pout)
show()

produces:
['50', '100', '150', '200', '250', '300', '350', '400', '450', '500', '550', 
'600', '650', '700', '750', '800', '850', '900', '950', '1000', '1050']
['0', '7.4', '11.4', '14.2', '16.3', '18.1', '19.3', '20.6', '21.6', '22.6', 
'23.4', '24.1', '24.9', '25.4', '26.1', '26.5', '26.9', '27.1', '27.3', 
'27.4', '27.4']
Traceback (most recent call last):
  File "./read_current_drive.py", line 26, in <module>
    plot (Id, pout)
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/pyplot.py", line 2096, in plot
    ret =  gca().plot(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/axes.py", line 3277, in plot
    for line in self._get_lines(*args, **kwargs):
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/axes.py", line 394, in _grab_next_args
    for seg in self._plot_2_args(remaining, **kwargs):
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/axes.py", line 298, in _plot_2_args
    x, y, multicol = self._xy_from_xy(x, y)
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/axes.py", line 214, in _xy_from_xy
    bx = self.axes.xaxis.update_units(x)
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/axis.py", line 939, in update_units
    converter = munits.registry.get_converter(data)
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/units.py", line 137, in get_converter
    converter = self.get_converter( thisx )
  File "/usr/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5-linux-
x86_64.egg/matplotlib/units.py", line 137, in get_converter
[...]
recursion limit reached






More information about the SciPy-user mailing list