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

Skip to content

Commit 2c92404

Browse files
radfordjkseppan
authored andcommitted
backend_macosx: cast set_rubberband's arguments to int as required
1 parent 7a503af commit 2c92404

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def _init_toolbar(self):
417417
_macosx.NavigationToolbar2.__init__(self, basedir)
418418

419419
def draw_rubberband(self, event, x0, y0, x1, y1):
420-
self.canvas.set_rubberband(x0, y0, x1, y1)
420+
self.canvas.set_rubberband(int(x0), int(y0), int(x1), int(y1))
421421

422422
def release(self, event):
423423
self.canvas.remove_rubberband()

0 commit comments

Comments
 (0)