Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Disable draw_foo methods on renderer used to estimate tight extents.#16734
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Doesn't the renderer get cached, and thus needs these methods restored? |
The renderer gets swapped out later (in print_method) by a real one. This was already the case before: the |
Uh oh!
There was an error while loading.Please reload this page.
For the pgf backend, in particular draw_image() cannot succeed becausethat needs actual filesystem access (to set up \includegraphics).
…ed to estimate tight extents.
…734-on-v3.2.xBackport PR#16734 on branch v3.2.x (Disable draw_foo methods on renderer used to estimate tight extents.)
For the pgf backend, in particular draw_image() cannot succeed because
that needs actual filesystem access (to set up \includegraphics).
I think this is a better solution than#16732 toclose#16731, and should work both on master and backported to 3.2.
Note that this disabling of draw_foo methods was already done previously, in a piecemeal fashion, athttps://github.com/matplotlib/matplotlib/blob/v3.2.0/lib/matplotlib/backends/backend_pgf.py#L422 or (in a different fashion) athttps://github.com/matplotlib/matplotlib/blob/v3.2.0/lib/matplotlib/backends/backend_ps.py#L924.
PR Summary
PR Checklist