Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ae32e6

Browse filesBrowse files
committed
Bugfix to allow LocationEvent with x,y=None,None without raising
exception. - ADS svn path=/trunk/matplotlib/; revision=859
1 parent 6534a50 commit 1ae32e6
Copy full SHA for 1ae32e6

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ def __init__(self, name, canvas, x, y):
561561
self.x = x
562562
self.y = y
563563

564+
if self.x is None or self.y is None:
565+
# cannot check if event was in axes if no x,y info
566+
return
567+
564568
self.inaxes = None
565569
for a in self.canvas.figure.get_axes():
566570
if a.in_axes(self.x, self.y):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.