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

Drifting annotations with FacetGrid #126

Open
LucaCerina opened this issue Jul 10, 2023 · 1 comment
Open

Drifting annotations with FacetGrid #126

LucaCerina opened this issue Jul 10, 2023 · 1 comment

Comments

@LucaCerina
Copy link

Figure_1

Hello, I am trying to add annotations in a seaborn catplot, but I noticed that self._plotter.get_value_lim() in annotate is messing the coordinates, since every plot increases the maximum ylim. I tried #89 and #101. Also setting a fixed orig_value_lim is breaking the plot, so probably also _annotate_pair uses the wrong ylims.

Do you know how to circumvent the problem?

@trevismd
Copy link
Owner

trevismd commented Oct 1, 2023

Hi!
Sorry the first answer's coming late and isn't probably what you want, but here it is anyway :-)

Until Catplots are supported, if you're willing to switch over to using FacetGrid, you could probably pass sharey=False to achieve this (see the image and my recent answer for the code in #120).
I think you could also find a way to specify ylims in each subplot such that the height of "100%" matches.
Let me know how that goes, I'll try to be more reactive ;)

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

2 participants