Skip to content

Commit dee6cae

Browse files
committed
no need to senitize extrama in colorizer
the @vmin.setter in Normalize (and its subclasses) call _sanitize_extrema(), so there is no reason to also do so in colorizer
1 parent 1f8ff33 commit dee6cae

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)