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

Skip to content

Commit 32e3018

Browse files
authored
Merge pull request #30470 from trygvrad/clean_colorizer_vmin
No need to sanitize extrema in Colorizer.set_clim
2 parents 7b786e5 + dee6cae commit 32e3018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colorizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ def set_clim(self, vmin=None, vmax=None):
275275
# until both vmin and vmax are updated
276276
with self.norm.callbacks.blocked(signal='changed'):
277277
if vmin is not None:
278-
self.norm.vmin = colors._sanitize_extrema(vmin)
278+
self.norm.vmin = vmin
279279
if vmax is not None:
280-
self.norm.vmax = colors._sanitize_extrema(vmax)
280+
self.norm.vmax = vmax
281281

282282
# emit a update signal if the limits are changed
283283
if orig_vmin_vmax != (self.norm.vmin, self.norm.vmax):

0 commit comments

Comments
 (0)