8000 Drawing rubberband box outside of view crash backend_macosx · Issue #201 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Drawing rubberband box outside of view crash backend_macosx #201
Closed
@ddale

Description

@ddale

Original report at SourceForge, opened Tue Apr 5 19:58:21 2011

Drawing a large rubberband box causes backend_macosx to crash in draw_rubberband with the error,

Original exception was:
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

ipython's stack trace claims draw_rubberband was called with,

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.pyc in draw_rubberband(self=NavigationToolbar2 object 0x103a73ec0, event=<matplotlib.backend_bases.MouseEvent instance>, x0=80.0, y0=47.999999999999986, x1=243, y1=243)

where x0 and y0 are apparently from the MouseEvent object.

SourceForge Comments

On Tue Apr 5 20:00:29 2011, None wrote:

By "large" I meant "box outside of the current view." For instance, begin dragging a zoom box within the plot limits and drag outside these bounds.

SourceForge History

  • On Tue Apr 5 20:00:29 2011, by None: summary: Drawing large rubberband box crashes MacOS X backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0