How do I set a matplotlib colorbar extents?
- by Adam Fraser
I'd like to display a colorbar representing an image's raw values along side a matplotlib imshow subplot which displays that image, normalized.
I've been able to draw the image and a colorbar successfully like this, but the colorbar min and max values represent the normalized (0,1) image instead of the raw (0,99) image.
f = plt.figure()
# create…