8000 bugfix: debugging printout for MouseEvent threw an exception when out… · jonovik/matplotlib@b1e40e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1e40e8

Browse files
committed
bugfix: debugging printout for MouseEvent threw an exception when outside axes.
1 parent f8eaaf5 commit b1e40e8

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
@@ -1323,8 +1323,8 @@ def __init__(self, name, canvas, x, y, button=None, key=None,
13231323
self.dblclick = dblclick
13241324

13251325
def __str__(self):
1326-
return "MPL MouseEvent: xy=(%d,%d) xydata=(%lf,%lf) button=%d dblclick=%s inaxes=%s"%\
1327-
(self.x,self.y,self.xdata,self.ydata,self.button,self.dblclick,self.inaxes)
1326+
return "MPL MouseEvent: xy=(%d,%d) xydata=(%s,%s) button=%d dblclick=%s inaxes=%s"%\
1327+
(self.x,self.y,str(self.xdata),str(self.ydata),self.button,self.dblclick,self.inaxes)
13281328

13291329
class PickEvent(Event):
13301330
"""

0 commit comments

Comments
 (0)
0