Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing rubberband box outside of view crash backend_macosx #201

Closed
ddale opened this issue Jun 20, 2011 · 4 comments
Closed

Drawing rubberband box outside of view crash backend_macosx #201

ddale opened this issue Jun 20, 2011 · 4 comments

Comments

@ddale
Copy link
Contributor

ddale commented Jun 20, 2011

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
@mdehoon
Copy link
Contributor

mdehoon commented Aug 21, 2011

I was able to replicate this bug with older versions of matplotlib but not with the current git master. Can you still trigger this bug with the current git master? If not, I suggest we close this issue.

@jdh2358
Copy link
Collaborator

jdh2358 commented Mar 17, 2012

Darren, @mdehoon commented in this pull request

#741

that this issue should be closed -- are you able to confirm?

@mdehoon
Copy link
Contributor

mdehoon commented Dec 12, 2012

I still cannot replicate this bug. Let's wait another week, and close this issue if there are no further reports of this bug.

@pelson
Copy link
Member

pelson commented Dec 12, 2012

Yes agreed. Lets close this until we have an actual user who is reporting it.

@pelson pelson closed this as completed Dec 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants