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
'FigureCanvasAgg' object has no attribute '_is_idle_drawing' (1.5.0rc1) #5094
Comments
This is a side effect my a work-around to having I am a bit unclear on how this can be happening though as Also, may try adding a test to pyplot L563 to not call |
I can not reproduce this with svg or pdf backends Python 3.5.0 |Continuum Analytics, Inc.| (default, Sep 13 2015, 10:34:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'1.5.0rc1.post86+g84f2fb7'
>>> matplotlib.use('svg')
>>> import matplotlib.pyplot as plt
>>> plt.plot(range(32))
[<matplotlib.lines.Line2D object at 0x7f5c751a01d0>]
>>> plt.savefig('test.png')
>>> |
@efiring @jenshnielsen Can you reproduce this? |
Sigh, I tried to test this on a mac, but the conda-forge package does not build the osx backend (there is a note in the configuration from @pelson that travis has issues with it). Trying to source install fails as setup.py is not seeing conda's freetype headers. It also turns out I don't have xcode installed, but the current version of xcode does not support anything less than 10.10 and I don't see a way to get an old version of xcode without registering with apple. Trying brew to get gcc results in an obscure sh error (-L option not recognized) while installing a dependency which suggests that I need to install gcc (this is all probably related back to not having a c-complier though). Bah |
Ah, I can reproduce this now. Had to remember that @mdehoon has |
If interactive mode is on using the model where every time any artist is invalidated/marked as stale a `draw_idle` is triggered and the user is using a non-Agg based backend, saving a png will result in a draw_idle call triggered from inside the __init__ method of `FigureCanvasBase` which then fails because the full object has not been set up (this is not a problem using the IPython hooks because the stale state is only checked once when all user code has completed executing). closes matplotlib#5094
If interactive mode is on using the model where every time any artist is invalidated/marked as stale a `draw_idle` is triggered and the user is using a non-Agg based backend, saving a png will result in a draw_idle call triggered from inside the __init__ method of `FigureCanvasBase` which then fails because the full object has not been set up (this is not a problem using the IPython hooks because the stale state is only checked once when all user code has completed executing). closes matplotlib#5094
Using the MacOSX backend as well as other backends (e.g. the PDF backend), saving a figure to a PNG fails with 1.5.0rc1:
This error does not occur with matplotlib 1.4.3.
The text was updated successfully, but these errors were encountered: