Write plot_bands.