Given ax = plt.subplot():
ax.bar()[0] can be passed to plt.legend().
However, ax.bar3d() returns None. How do I create legend for displayed bars?
UPDATE:
Passing legend="stuff" to ax.bar3d() and than calling ax.legend() raises
/usr/lib/python2.6/site-packages/matplotlib/axes.py:4368: UserWarning: No labeled objects found. Use label='...' kwarg on individual plots.
warnings.warn("No labeled objects found. "
You need to use a proxy artist where legends are not supported.
This code:
produces this: