-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Pandas enforces subplot_adjust creating UserWarning with constrained_layout #16464
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
This is how |
With user you mean pandas here, I guess? |
Any user or any package calling |
Ok. My point here is that it's out of the user's hand. Pandas just does the subplots_adjust, therefore any user of the constrained_layout feature constantly gets these UserWarnings. |
Matplotlib is working as designed, so I guess the question is what change would you hope for on our end? The only two I can think of are a) we don't emit a From the panda's side they could not call |
I tend to agree, but the matplotlib twitter account encouraged me to create this issue and link it to the pandas' one. ;) |
I figured this is a common enough bug that it's useful to be documented here 🤷♀ |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
This doesn't seem to happen anymore due to changes in Matplotlib or Pandas. |
Bug report
Bug summary
Pandas dataframe plotting uses subplot_adjust, always creating a UserWarning because I am using constrained_layout as my default layouter.
Cross-issue with pandas-dev/pandas#25261 (I'm uncertain where this should/could be fixed).
Code for reproduction
Actual outcome
Expected outcome
No UserWarning
Matplotlib version
print(matplotlib.get_backend())
): 'module://ipykernel.pylab.backend_inline'All installed via conda-forge.
The text was updated successfully, but these errors were encountered: