is it possible to use matplotlib's legend() for a bar chart? I am  plotting a number of bars with different colors on the same axes and I would like to label each color.

legend () seems to want to label every single bar on my bar chart.

Thanks in advance.