---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-104-6e43cdb68000> in <module>()
1 plt.errorbar(np.logspace(2, 6, 15).astype(int), df.groupby('iter').mean().as_matrix(),
----> 2 yerr=df.groupby('iter').std().as_matrix())
3 plt.xscale('log')
4 plt.yscale('log')
5 plt.xlabel('N')
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/pyplot.py in errorbar(x, y, yerr, xerr, fmt, ecolor, elinewidth, capsize, barsabove, lolims, uplims, xlolims, xuplims, errorevery, capthick, hold, data, **kwargs)
2927 xlolims=xlolims, xuplims=xuplims,
2928 errorevery=errorevery, capthick=capthick, data=data,
-> 2929 **kwargs)
2930 finally:
2931 ax._hold = washold
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1896 warnings.warn(msg % (label_namer, func.__name__),
1897 RuntimeWarning, stacklevel=2)
-> 1898 return func(ax, *args, **kwargs)
1899 pre_doc = inner.__doc__
1900 if pre_doc is None:
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in errorbar(self, x, y, yerr, xerr, fmt, ecolor, elinewidth, capsize, barsabove, lolims, uplims, xlolims, xuplims, errorevery, capthick, **kwargs)
2905 if plot_line:
2906 data_line = mlines.Line2D(x, y, **plot_line_style)
-> 2907 self.add_line(data_line)
2908
2909 barcols = []
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_base.py in add_line(self, line)
1791 line.set_clip_path(self.patch)
1792
-> 1793 self._update_line_limits(line)
1794 if not line.get_label():
1795 line.set_label('_line%d' % len(self.lines))
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_base.py in _update_line_limits(self, line)
1813 Figures out the data limit of the given line, updating self.dataLim.
1814 """
-> 1815 path = line.get_path()
1816 if path.vertices.size == 0:
1817 return
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/lines.py in get_path(self)
987 """
988 if self._invalidy or self._invalidx:
--> 989 self.recache()
990 return self._path
991
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/lines.py in recache(self, always)
694
695 if len(x) != len(y):
--> 696 raise RuntimeError('xdata and ydata must be the same length')
697
698 self._xy = np.empty((len(x), 2), dtype=np.float_)
RuntimeError: xdata and ydata must be the same length