-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ValueError: left cannot be >= right #954
Comments
Without seeing your data I'd have to guess but I think something like this can happen if your titles are too big for the facets. |
Indeed, your intuition is spot-on and the titles are quite large. Is there a way to decrease the size of the titles prior to plotting? I used g.set_titles(size=2), but I get the error upon creating the FacetGrid. |
You could change the default axes titlesize with an rcparam context manager or start with a big plot, change the title size, and then change the figure size. But I doubt that what you really want is titles in 2 pt font, so you might have to rethink the plot you're trying to make. |
Indeed, the size=2 was just to try an arbitrarily small number to see if it worked. I'll try setting rcparam prior to instantiating the FacetGrid, thanks for the response. |
Hi, I'm getting the following matplotlib error when using FacetGrid with the following invocation:
It looks like this is a matplotlib issue with
tight_layout
; there's a workaround, e.g. here but I don't know how to apply it to the FacetGrid instance.The text was updated successfully, but these errors were encountered: