Elffuss BraidHub

kikocis/auto-code-rover public

main · 707 BRawPermalink
1diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py
2--- a/lib/matplotlib/colors.py
3+++ b/lib/matplotlib/colors.py
4@@ -1362,8 +1362,12 @@ def inverse(self, value):
5
6 def autoscale(self, A):
7 """Set *vmin*, *vmax* to min, max of *A*."""
8- self.vmin = self.vmax = None
9- self.autoscale_None(A)
10+ with self.callbacks.blocked():
11+ # Pause callbacks while we are updating so we only get
12+ # a single update signal at the end
13+ self.vmin = self.vmax = None
14+ self.autoscale_None(A)
15+ self._changed()
16
17 def autoscale_None(self, A):
18 """If vmin or vmax are not set, use the min/max of *A* to set them."""