Skip to content

Commit 451e1a0

Browse files
committed
Include step info in str(scroll_event).
Although event.step is only nonzero for scroll events, it seems reasonable to always add it to str(MouseEvent). After all, that str() always contains e.g. dblclick, which doesn't make sense for motion_notify_event either. (IOW the alternative would be to more carefully write different str()s for each kind of MouseEvents.)
1 parent c3f423d commit 451e1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ def _from_ax_coords(cls, name, ax, xy, *args, **kwargs):
14331433
def __str__(self):
14341434
return (f"{self.name}: "
14351435
f"xy=({self.x}, {self.y}) xydata=({self.xdata}, {self.ydata}) "
1436-
f"button={self.button} dblclick={self.dblclick} "
1436+
f"button={self.button} dblclick={self.dblclick} step={self.step} "
14371437
f"inaxes={self.inaxes}")
14381438

14391439

0 commit comments

Comments
 (0)