Skip to content

Commit b39eaf1

Browse files
committed
Fix styling: remove trailing whitespace and shorten comment
1 parent 9faecaf commit b39eaf1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,14 +2119,15 @@ def onmove(self, event):
21192119
self.lineh.set_visible(self.visible and self.horizOn)
21202120
if not (self.visible and (self.vertOn or self.horizOn)):
21212121
return
2122-
# Redraw.
2122+
# Redraw.
21232123
if self.useblit:
21242124
background = self._load_blit_background()
21252125
if background is not None:
21262126
self.canvas.restore_region(background)
2127-
2127+
21282128
# --- UPDATED FIX STARTS HERE ---
2129-
# If there are other axes overlapping with the cursor's area, redraw them completely
2129+
# If there are other axes overlapping with the cursor's area,
2130+
# redraw them completely.
21302131
for ax_ in self.ax.get_figure(root=True).get_axes():
21312132
if ax_ is not self.ax and self.ax.bbox.overlaps(ax_.bbox):
21322133
self.ax.draw_artist(ax_)

0 commit comments

Comments
 (0)