diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index fba292890b1a..84d4464afffd 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -331,7 +331,7 @@ def set_cmap(self, cmap): pass @cbook.deprecated("3.1", alternative="ScalarMappable.set_clim") - def set_clim(self, cmap): + def set_clim(self, vmin=None, vmax=None): """ `.colorbar.Colorbar.set_clim` does nothing; set the limits on the mappable associated with this colorbar.