Apr-21-2019, 10:14 AM
runfile('C:/Users/Desktop/python ode/homework11.py', wdir='C:/Users/Desktop/python ode') <itertools.islice object at 0x0000024F73D16188> Traceback (most recent call last): File "<ipython-input-104-56c93f909ab5>", line 1, in <module> runfile('C:/Users/Desktop/python ode/homework11.py', wdir='C:/Users/Desktop/python ode') File "C:\Users\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile execfile(filename, namespace) File "C:\Users\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace) File "C:/Users/Desktop/python ode/homework11.py", line 134, in <module> plt.plot(a) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 3363, in plot ret = ax.plot(*args, **kwargs) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1867, in inner return func(ax, *args, **kwargs) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 1528, in plot for line in self._get_lines(*args, **kwargs): File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 406, in _grab_next_args for seg in self._plot_args(this, kwargs): File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 383, in _plot_args x, y = self._xy_from_xy(x, y) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 216, in _xy_from_xy by = self.axes.yaxis.update_units(y) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axis.py", line 1463, in update_units converter = munits.registry.get_converter(data) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\units.py", line 182, in get_converter converter = self.get_converter(next_item) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\units.py", line 188, in get_converter thisx = safe_first_element(x) File "C:\Users\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 2359, in safe_first_element raise RuntimeError("matplotlib does not support generators " RuntimeError: matplotlib does not support generators as input