Colour bar for discrete rasters with Matplotlib
Plotting raster data can be done in a few lines of code with Matplotlib. Adding a colour bar (color bar) associated to your data can be as simple as plt.colorbar() for example: This is a nice quick way of displaying a scale for your data. I’ve often wanted to plot discrete (and not continuous) colour… Read More »Colour bar for discrete rasters with Matplotlib