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

Unnecessary y-label in relplot #2712

Closed
MarcoGorelli opened this issue Dec 13, 2021 · 5 comments · Fixed by #2846
Closed

Unnecessary y-label in relplot #2712

MarcoGorelli opened this issue Dec 13, 2021 · 5 comments · Fixed by #2846

Comments

@MarcoGorelli
Copy link
Contributor

In this example from the docs:

flights_wide = sns.load_dataset("flights").pivot("year", "month", "passengers")
sns.relplot(data=flights_wide, kind="line")

the plot shows

image

The y-label shows _y, even though that's not part of the dataset.

IMO here it'd be clearer if there was no ylabel at all here.

Would a PR be welcome to remove the y-label in this case?

@mwaskom
Copy link
Owner

mwaskom commented Dec 14, 2021

Yes, this is an internal column name bubbling up when it shouldn’t. Not sure how simple the fix will be, but feel free to look into it.

@MarcoGorelli
Copy link
Contributor Author

Sure, I'll look into it

Related, May appears as the y-label in this example:

image

@mwaskom
Copy link
Owner

mwaskom commented Dec 14, 2021

That is intentional.

@jhncls
Copy link

jhncls commented Dec 15, 2021

@MarcoGorelli With which seaborn version did you test this?

@MarcoGorelli
Copy link
Contributor Author

That is intentional.

ah, sorry for the false report then

@MarcoGorelli With which seaborn version did you test this?

'0.11.2'

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

Successfully merging a pull request may close this issue.

3 participants