Skip to content

Commit fc6ea85

Browse files
authored
Merge pull request #13789 from ksunden/set_clim
BUG: Fix function signature mismatch for set_clim
2 parents 7e9c756 + 3ed62e4 commit fc6ea85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colorbar.py

+1-1
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)