-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: fig.tight_layout when quiver collection is clipped produces AttributeError #24104
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
The cause seems to be that this line returns matplotlib/lib/matplotlib/artist.py Line 341 in 7f758c6
Modifying matplotlib/lib/matplotlib/artist.py Line 343 in 7f758c6
bbox is not None fixes the problem, but I do not know if it is the correct fix...
|
Maybe better to check for |
What is the It would have been better to return a null bbox object and not Can the the tightbox code catch
|
Bisect points to #25710 as the fix. |
Maybe one should add a ( smoke) test for this so that it doesn't reappear? (Btw, there are no quiver arrows at the top, is that expected?) |
|
Uh oh!
There was an error while loading. Please reload this page.
Bug summary
When I set a clipping path to quiver object with set_clip_path(), Figure.tight_layout() produces AttributeError: 'NoneType' object has no attribute 'xmin'. Without tight_layout() everything works.
Code for reproduction
Actual outcome
Expected outcome
No error
Additional information
No response
Operating system
Ubuntu
Matplotlib Version
3.6.0
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.10.6
Jupyter version
3.4.8
Installation
conda
The text was updated successfully, but these errors were encountered: