Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb1a19 commit 935d1b6Copy full SHA for 935d1b6
lib/matplotlib/backend_bases.py
@@ -3028,9 +3028,14 @@ def _capture_events(ax):
3028
if _capture_events(ax):
3029
break # break if we hit a capturing axes
3030
else:
3031
- continue # continue to lower zorder if we did not break
+ # If the inner loop finished without an explicit break,
3032
+ # (e.g. no capturing axes was found) continue the
3033
+ # outer loop to the next zorder.
3034
+ continue
3035
- break # break if we hit a capturing axes
3036
+ # If the inner loop was terminated with an explicit break,
3037
+ # terminate the outer loop as well.
3038
+ break
3039
3040
# avoid duplicated triggers (but keep order of list)
3041
pan_axes = list(dict.fromkeys(pan_axes))
0 commit comments