mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.64k stars 1.94k forks source link

Plotting functions should not overwrite existing axes labels #2092

Closed mwaskom closed 1 year ago

mwaskom commented 4 years ago

This is annoying if you've set up a figure and added polished labels to the axes before calling a seaborn function, it will wipe your labels with the names of the pandas columns.

I think it's fair to define the plotting function behavior as adding "default" labels but respecting existing ones.

mwaskom commented 4 years ago

There's now a core-level method for doing this, but it is currently used only in the new distribution plots: https://github.com/mwaskom/seaborn/blob/de53836fcf9f82280dcba0926dcef11aaea2d2e3/seaborn/_core.py#L910

mwaskom commented 4 years ago

Addressed in relational module in #2222, punting to v0.12 for other modules that will receive more attention in that release.

mwaskom commented 1 year ago

This appears to now generally work with the categorical refactor.