From 06fdb58703c9f34deec3a1c35694aa856e1d7b79 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Fri, 29 Mar 2019 10:43:45 +0000 Subject: [PATCH] Backport PR #13789: BUG: Fix function signature mismatch for set_clim --- lib/matplotlib/colorbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.