---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-7cd4d412afd8> in <module>()
6 #blue_patch = mpatches.Patch(color='b', label='Avg QB Rating by Year')
7
----> 8 plt.bar(player_per_year, np.max(player_per_year), color='r')
9 plt.plot(avg_yearly_rate, color='b')
10
/Users/jph/anaconda/lib/python3.5/site-packages/matplotlib/pyplot.py in bar(left, height, width, bottom, hold, data, **kwargs)
2641 try:
2642 ret = ax.bar(left, height, width=width, bottom=bottom, data=data,
-> 2643 **kwargs)
2644 finally:
2645 ax.hold(washold)
/Users/jph/anaconda/lib/python3.5/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1810 warnings.warn(msg % (label_namer, func.__name__),
1811 RuntimeWarning, stacklevel=2)
-> 1812 return func(ax, *args, **kwargs)
1813 pre_doc = inner.__doc__
1814 if pre_doc is None:
/Users/jph/anaconda/lib/python3.5/site-packages/matplotlib/axes/_axes.py in bar(self, left, height, width, bottom, **kwargs)
2078 if len(height) != nbars:
2079 raise ValueError("incompatible sizes: argument 'height' "
-> 2080 "must be length %d or scalar" % nbars)
2081 if len(width) != nbars:
2082 raise ValueError("incompatible sizes: argument 'width' "
ValueError: incompatible sizes: argument 'height' must be length 18 or scalar