Bug/error when zooming

[Reposting this because it has been "pending" for 2 days]

With the Mac OS X backend (at least…), when zooming (with the rubberband
rectangle), error messages are repeatedly printed when the mouse leaves
(goes outside) the axes rectangle:

Traceback (most recent call last):
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 1625, in motion_notify_event
    self.callbacks.process(s, event)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/cbook.py",
line 265, in process
    proxy(*args, **kwargs)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/cbook.py",
line 191, in __call__
    return mtd(*args, **kwargs)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 2573, in drag_zoom
    self.draw_rubberband(event, x, y, lastx, lasty)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py",
line 420, in draw_rubberband
    self.canvas.set_rubberband(x0, y0, x1, y1)
TypeError: integer argument expected, got float

This problem is annoying because the error messages clutter the terminal,
and useful printed information leaves the screen. :slight_smile:

Configuration: Mac OS X 10.7, latest MacPort's Python and modules,
Matplotlib 1.0.1 with Mac OS X backend.

···

--
View this message in context: http://old.nabble.com/Bug-error-when-zooming-tp32503898p32503898.html
Sent from the matplotlib - users mailing list archive at Nabble.com.