Skip to content

Commit 295e5b7

Browse files
committed
Fixed set_clim() to emit a single 'changed' callback
1 parent 6a2747b commit 295e5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colorizer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ def set_clim(self, vmin=None, vmax=None):
279279
if vmax is not None:
280280
self.norm.vmax = colors._sanitize_extrema(vmax)
281281

282-
# self.changed() will now emit a update signal if the limits are changed
282+
# emit a update signal if the limits are changed
283283
if orig_vmin_vmax != (self.norm.vmin, self.norm.vmax):
284-
self.changed()
284+
self.norm.callbacks.process('changed')
285285

286286
def get_clim(self):
287287
"""

0 commit comments

Comments
 (0)