From 3ed62e4c3aeb1f52b5b4eda8694116db2b02065e Mon Sep 17 00:00:00 2001 From: ksunden Date: Thu, 28 Mar 2019 23:26:37 -0500 Subject: [PATCH] BUG: Fix function signature mismatch for set_clim The dummy parent class introduced in #13234 had a `set_clim` with a different signature to the version in `ScalarMappable`. This caused code which called it and passed both arguments to fail, rather than simply no-op. --- 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.