Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bda50d0

Browse files
committed
passing through None
1 parent b3be888 commit bda50d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,9 +1366,9 @@ def __init__(self, name, canvas, x, y, guiEvent=None):
13661366
"""
13671367
Event.__init__(self, name, canvas, guiEvent=guiEvent)
13681368
# x position - pixels from left of canvas
1369-
self.x = int(x) if x is not None else 0
1369+
self.x = int(x) if x is not None else x
13701370
# y position - pixels from right of canvas
1371-
self.y = int(y) if y is not None else 0
1371+
self.y = int(y) if y is not None else y
13721372
self.inaxes = None # the Axes instance if mouse us over axes
13731373
self.xdata = None # x coord of mouse in data coords
13741374
self.ydata = None # y coord of mouse in data coords

0 commit comments

Comments
 (0)