Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f4f449

Browse files
committed
remove lines that are affected by bug concerning twins of shared axes
1 parent eb85c81 commit 7f4f449

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3012,20 +3012,9 @@ def _capture_events(ax):
30123012
for zorder in sorted(grps, reverse=True):
30133013
for ax in grps[zorder]:
30143014
pan_axes.append(ax)
3015-
3016-
# NOTE: shared axes are automatically triggered, but twin-axes
3017-
# and twin-axes of shared axes must be explicitly triggered!
3015+
# NOTE: shared axes are automatically triggered, but twin-axes not!
30183016
pan_axes.extend(ax._twinned_axes.get_siblings(ax))
30193017

3020-
shared_axes = itertools.chain(
3021-
*(ax._shared_axes[name].get_siblings(ax)
3022-
for name in ax._axis_names))
3023-
3024-
for ax_s in shared_axes:
3025-
ax_t = ax_s._twinned_axes.get_siblings(ax_s)
3026-
# only trigger twinned-axes not the shared axes!
3027-
pan_axes.extend((i for i in ax_t if i is not ax_s))
3028-
30293018
if _capture_events(ax):
30303019
break # break if we hit a capturing axes
30313020
else:

0 commit comments

Comments
 (0)