-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
xkcd plots stopped working on Mac OS X. #5049
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
Seems to be specific to the macosx backed. Cc: @mdehoon |
Why, on line 217 in patheffects.py, is renderer.draw_path(gc, ...) being called on a RendererMac object while gc is a GraphicsContextBase instead of a GraphicsContextMac? I suspect a call to # Get the real renderer, not a PathEffectRenderer.
if isinstance(renderer, PathEffectRenderer):
renderer = renderer._renderer is missing, but it may be some deeper problem. |
Is this related to #4024 ? |
@tacaswell I think what we are seeing here is a more fundamental issue. If we solve this one then #4024 will likely also be solved; the opposite is not true though. |
The equivalent bug appears with the gtkcairo backend:
The origin of the bug is the same: The gtkcairo renderer is used with a generic (GraphicsContextBase) graphics context instead of a GraphicsContextCairo graphics context. |
Also broken in the same way with the GTK backend:
and with the ps backend:
|
The special sub-GC that is created by the PathEffectRenderer was of GraphicsContextBase, rather than the backend-specific GC. Fix matplotlib#5049, Fix matplotlib#4024
The matplotlib xkcd example plots at
http://matplotlib.org/examples/showcase/xkcd.html
stopped working with matplotlib 1.4.x (they used to work with earlier versions). This is with Python 2.7.5 on Mac OS X 10.9.5 and matplotlib 1.4.3.
The following Traceback is printed if I run one of the examples:
The text was updated successfully, but these errors were encountered: