-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Draggable legend results RuntimeError and AttributeError on Mac OS 10.8.1 #1266
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
Comments
I can recreate this on 10.7.4. |
The first problem typically occurs when trying to draw outside of the event loop. If so, then the problem may be in the design of the offsetbox.py code. This is a minimal example of this error:
The gist is that the graphics context gc is not properly initialized outside of the event loop, so you cannot grab a renderer and start drawing to it. |
I see the same thing with OS X 10.8.2 and matplotlib 1.2.0. |
It works here with: |
I believe this is a macosx backend issue. Other backends work fine, but the macosx gives the reported runtime error. |
AFAICT it's not a macosx backend issue, but an issue with offsetbox.py. |
works fine in linux 1.4.x, 2.7 and Qt4Agg. It is pretty clearly in the macosx backend. |
The bug shows up when using the macosx backend. That does not necessarily mean that the bug is located is the macosx backend. |
Fixed by #6178 |
Environment:
Code:
Once I drag the legend, the following errors occurred. The same code works fine in Windows XP.
The text was updated successfully, but these errors were encountered: