Elffuss BraidHub

kikocis/auto-code-rover public

main · 1.0 KiBRawPermalink
1diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py
2--- a/lib/matplotlib/axis.py
3+++ b/lib/matplotlib/axis.py
4@@ -1241,11 +1241,13 @@ def _set_lim(self, v0, v1, *, emit=True, auto):
5 self.axes.callbacks.process(f"{name}lim_changed", self.axes)
6 # Call all of the other axes that are shared with this one
7 for other in self._get_shared_axes():
8- if other is not self.axes:
9- other._axis_map[name]._set_lim(
10- v0, v1, emit=False, auto=auto)
11- if other.figure != self.figure:
12- other.figure.canvas.draw_idle()
13+ if other is self.axes:
14+ continue
15+ other._axis_map[name]._set_lim(v0, v1, emit=False, auto=auto)
16+ if emit:
17+ other.callbacks.process(f"{name}lim_changed", other)
18+ if other.figure != self.figure:
19+ other.figure.canvas.draw_idle()
20
21 self.stale = True
22 return v0, v1