Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 630bfeb

Browse files
authored
Merge pull request #13792 from meeseeksmachine/auto-backport-of-pr-13789-on-v3.1.x
Backport PR #13789 on branch v3.1.x (BUG: Fix function signature mismatch for set_clim)
2 parents 50523e2 + 06fdb58 commit 630bfeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def set_cmap(self, cmap):
331331
pass
332332

333333
@cbook.deprecated("3.1", alternative="ScalarMappable.set_clim")
334-
def set_clim(self, cmap):
334+
def set_clim(self, vmin=None, vmax=None):
335335
"""
336336
`.colorbar.Colorbar.set_clim` does nothing; set the limits on
337337
the mappable associated with this colorbar.

0 commit comments

Comments
 (0)