There was an error while loading. Please reload this page.
1 parent 986e15f commit 4543d48Copy full SHA for 4543d48
1 file changed
lib/matplotlib/backend_bases.py
@@ -1394,14 +1394,16 @@ def __init__(self, name, canvas, x, y, button=None, key=None,
1394
(*x*, *y*) in figure coords ((0, 0) = bottom left)
1395
button pressed None, 1, 2, 3, 'up', 'down'
1396
"""
1397
- LocationEvent.__init__(self, name, canvas, x, y, guiEvent=guiEvent)
1398
if button in MouseButton.__members__.values():
1399
button = MouseButton(button)
1400
self.button = button
1401
self.key = key
1402
self.step = step
1403
self.dblclick = dblclick
1404
+ LocationEvent.__init__(self, name, canvas, x, y, guiEvent=guiEvent)
1405
+
1406
1407
def __str__(self):
1408
return (f"{self.name}: "
1409
f"xy=({self.x}, {self.y}) xydata=({self.xdata}, {self.ydata}) "
0 commit comments