fixed up legend issues with barplots, and scale it when more than 6 subplots