Hello everyone, It's fine when I plot in interactive Python shell like so:
import matplotlib.pyplot as plt plt.plot(valist) plt.show() However, I get an exception like in subject when I call it from function: def plotit(origlist, valist): plt.plot(origlist) plt.plot(valist) plt.show() (origlist and valist are lists of small floats, each 256 elems long) The exception: Traceback (most recent call last): File "C:\Python26\loadavg3.py", line 115, in <module> plotit(origlist, valist) File "C:\Python26\loadavg3.py", line 102, in plotit plt.plot(origlist) File "C:\Python26\Lib\site-packages\matplotlib\pyplot.py", line 2096, in plot ret = gca().plot(*args, **kwargs) File "C:\Python26\Lib\site-packages\matplotlib\axes.py", line 3277, in plot for line in self._get_lines(*args, **kwargs): File "C:\Python26\Lib\site-packages\matplotlib\axes.py", line 389, in _grab_next_args for seg in self._plot_1_arg(remaining[0], **kwargs): File "C:\Python26\Lib\site-packages\matplotlib\axes.py", line 243, in _plot_1_arg x, y, multicol = self._xy_from_y(y) File "C:\Python26\Lib\site-packages\matplotlib\axes.py", line 199, in _xy_from_y b = self.axes.yaxis.update_units(y) File "C:\Python26\Lib\site-packages\matplotlib\axis.py", line 939, in update_units converter = munits.registry.get_converter(data) File "C:\Python26\Lib\site-packages\matplotlib\units.py", line 137, in get_converter converter = self.get_converter( thisx ) File "C:\Python26\Lib\site-packages\matplotlib\units.py", line 137, in get_converter converter = self.get_converter( thisx ) File "C:\Python26\Lib\site-packages\matplotlib\units.py", line 137, in get_converter (snip lots of identical lines) converter = self.get_converter( thisx ) File "C:\Python26\Lib\site-packages\matplotlib\units.py", line 137, in get_converter converter = self.get_converter( thisx ) File "C:\Python26\Lib\site-packages\matplotlib\units.py", line 133, in get_converter if isinstance(x, np.ndarray) and x.dtype != np.object: RuntimeError: maximum recursion depth exceeded while calling a Python object Regards, mk ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users