Skip to content Skip to sidebar Skip to footer

Colobar Label Matplotlib In Imagegrid

I am using this function from the documentation to make a nice plot with matplotlib. def demo_grid_with_single_cbar(fig): ''' A grid of 2x2 images with a single colorbar

Solution 1:

just changing

cbar = grid.cbar_axes[0].colorbar(im)
cbar.ax.set_label_text("$[a.u.]$")

does do the job!!

Post a Comment for "Colobar Label Matplotlib In Imagegrid"