There was an error while loading. Please reload this page.
1 parent 1e05bd2 commit 5fb2109Copy full SHA for 5fb2109
1 file changed
lib/matplotlib/cm.py
@@ -402,6 +402,8 @@ def set_clim(self, vmin=None, vmax=None):
402
403
.. ACCEPTS: (vmin: float, vmax: float)
404
"""
405
+ # If the norm's limits are updated self.changed() will be called
406
+ # through the callbacks attached to the norm
407
if vmax is None:
408
try:
409
vmin, vmax = vmin
@@ -411,7 +413,6 @@ def set_clim(self, vmin=None, vmax=None):
411
413
self.norm.vmin = colors._sanitize_extrema(vmin)
412
414
if vmax is not None:
415
self.norm.vmax = colors._sanitize_extrema(vmax)
- self.changed()
416
417
def get_alpha(self):
418
@@ -466,8 +467,9 @@ def autoscale(self):
466
467
468
if self._A is None:
469
raise TypeError('You must first set_array for mappable')
470
471
472
self.norm.autoscale(self._A)
473
474
def autoscale_None(self):
475
@@ -476,7 +478,7 @@ def autoscale_None(self):
476
478
477
479
480
- # If the norm updates the limits *self.changed()* will be called
481
482
# through the callbacks attached to the norm
483
self.norm.autoscale_None(self._A)
484
0 commit comments