large "modular" plot_bar function