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 bf6bb31 commit eaf59b5Copy full SHA for eaf59b5
lib/matplotlib/widgets.py
@@ -2128,10 +2128,13 @@ def clear(self, event):
2128
2129
def _clear(self, event):
2130
"""Clear the cursor."""
2131
- if self.ignore(event) or self.canvas is not self.ax.figure.canvas:
+ if self.ignore(event):
2132
return
2133
if self.useblit:
2134
for canvas, info in self._canvas_infos.items():
2135
+ # someone has switched the canvas on us!
2136
+ if canvas is not canvas.figure.canvas:
2137
+ continue
2138
info["background"] = canvas.copy_from_bbox(canvas.figure.bbox)
2139
2140
onmove = _api.deprecate_privatize_attribute('3.7')
0 commit comments