Skip to content
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

UserWarning: This figure includes Axes that are not compatible with tight_layout #1

Closed
lincolnfrias opened this issue Nov 23, 2017 · 4 comments

Comments

@lincolnfrias
Copy link

First of all, incredibly awesome and fun package. Thanks a lot!

I'm getting this warning in all the plots:

UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. warnings.warn("This figure includes Axes that are not compatible ").

It seems a false positive in this context, right?

@gyli
Copy link
Owner

gyli commented Nov 23, 2017

I notice this issue too. The reason of it is that tight_layout is turned on as it says. So you can do fig.set_tight_layout(False) to cancel the tight layout and this warning would be gone.

However, tight layout is pretty necessary in the multiple plots case, to give subplots' title enough space. I will probably make a better default value for the tight_layout setting, or figure out a better way to handle subplots.

@gyli gyli closed this as completed Aug 17, 2018
@ProsperousHeart
Copy link

Why was this closed? This doesn't resolve the issue, since it should be compatible or documentation should be more clear.

@gyli
Copy link
Owner

gyli commented Dec 1, 2018

@ProsperousHeart Could you show me how to reproduce this warning? With matplotlib 3.0.2, I don't see this warning anymore.

@Lxiangyue
Copy link

That's right. Different versions result in different results. When I use matplotlib 2.0.1, an error reported. While using matplotlib 3.0.1, everything goes right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants