---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-49-d50573c058b2> in <module>()
2 weights = [cdf.Percentile(percent) for cdf in cdfs]
3 label = '%dth percent' % percent
----> 4 thinkplot.Plot(heights, weights, label=label)
/Users/nathankiner/Documents/Data Science/ThinkStats2/code/thinkplot.pyc in Plot(obj, ys, style, **options)
221 pyplot.plot(xs, style, **options)
222 else:
--> 223 pyplot.plot(xs, ys, style, **options)
224
225
/Users/nathankiner/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.pyc in plot(*args, **kwargs)
3097 ax.hold(hold)
3098 try:
-> 3099 ret = ax.plot(*args, **kwargs)
3100 draw_if_interactive()
3101 finally:
/Users/nathankiner/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.pyc in plot(self, *args, **kwargs)
1371 lines = []
1372
-> 1373 for line in self._get_lines(*args, **kwargs):
1374 self.add_line(line)
1375 lines.append(line)
/Users/nathankiner/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _grab_next_args(self, *args, **kwargs)
302 return
303 if len(remaining) <= 3:
--> 304 for seg in self._plot_args(remaining, kwargs):
305 yield seg
306 return
/Users/nathankiner/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _plot_args(self, tup, kwargs)
280 x = np.arange(y.shape[0], dtype=float)
281
--> 282 x, y = self._xy_from_xy(x, y)
283
284 if self.command == 'plot':
/Users/nathankiner/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _xy_from_xy(self, x, y)
221 y = np.atleast_1d(y)
222 if x.shape[0] != y.shape[0]:
--> 223 raise ValueError("x and y must have same first dimension")
224 if x.ndim > 2 or y.ndim > 2:
225 raise ValueError("x and y can be no greater than 2-D")
ValueError: x and y must have same first dimension