Fixed bug with bar plots and legend labels. (Kudos to Nils Wagner.)