Arg. It's always the last thing you try:

quadmesh.set_clim(vmin=0, vmax=15)

works.

Answer from mgilson on Stack Overflow
🌐
Matplotlib
matplotlib.org › 2.1.1 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 2.1.1 documentation
To apply clim to all axes images do: clim(0, 0.5) If either vmin or vmax is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use, for example: for im in gca().get_images(): im.set_clim(0, 0.05) Animation Demo ·
🌐
Matplotlib
matplotlib.org › 3.1.1 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.1.2 documentation
May 1, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example: ... © Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team. Last updated on Jan 05, 2020.
🌐
Matplotlib
matplotlib.org › 3.2.1 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.2.1 documentation
April 8, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example:
🌐
Matplotlib
matplotlib.org › 3.1.0 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.1.0 documentation
May 18, 2019 - If you want to set the clim of multiple images, use set_clim on every image, for example: ... © Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team. Last updated on May 18, 2019.
🌐
GitHub
github.com › matplotlib › matplotlib › issues › 12682
using AxesImage.set_clim() shrinks the colorbar · Issue #12682 · matplotlib/matplotlib
October 31, 2018 - fig, ax = plt.subplots() data = np.random.random(size=(50,50)) img = ax.imshow(data) cb = plt.colorbar(img) # the colorbar is the same height as the plot at this point #img.set_clim([0.25,0.75]) # running this line will produce a shrunken colorbar #img.set_clim([-0.25,1.25]) # running this line will change the limits of the colorbar # and return the colorbar to its original size
🌐
GeeksforGeeks
geeksforgeeks.org › matplotlib-pyplot-clim-in-python
Matplotlib.pyplot.clim() in Python - GeeksforGeeks
April 19, 2020 - The clim() function in pyplot module of matplotlib library is used to set the color limits of the current image.
Find elsewhere
🌐
Matplotlib
matplotlib.org › 3.5.0 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.5.0 documentation
January 5, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example:
🌐
Matplotlib
matplotlib.org › 2.1.0 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 2.1.0 documentation
To apply clim to all axes images do: clim(0, 0.5) If either vmin or vmax is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use, for example: for im in gca().get_images(): im.set_clim(0, 0.05) Animation Demo ·
🌐
Matplotlib
matplotlib.org › 2.1.2 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 2.1.2 documentation
To apply clim to all axes images do: clim(0, 0.5) If either vmin or vmax is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use, for example: for im in gca().get_images(): im.set_clim(0, 0.05) Animation Demo ·
🌐
Matplotlib
matplotlib.org › 3.3.0 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.3.0 documentation
July 17, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example:
🌐
Matplotlib
matplotlib.org › 2.2.0 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 2.2.0 documentation
for im in gca().get_images(): im.set_clim(0, 0.05) © Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2017 The Matplotlib development team. Last updated on Mar 06, 2018.
🌐
Matplotlib
matplotlib.org › 3.1.3 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.1.3 documentation
If you want to set the clim of multiple images, use set_clim on every image, for example: ... © Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team. Last updated on Feb 09, 2020.
🌐
Matplotlib
matplotlib.org › 3.3.1 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.3.1 documentation
August 14, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example:
🌐
Matplotlib
matplotlib.org › 3.3.2 › api › _as_gen › matplotlib.pyplot.clim.html
matplotlib.pyplot.clim — Matplotlib 3.3.2 documentation
September 15, 2020 - If you want to set the clim of multiple images, use set_clim on every image, for example: