mwaskom / seaborn

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

Elongated Jointplot Issue (Distorted graph) #3558

Open cfreder2 opened 11 months ago

cfreder2 commented 11 months ago

We are running into an issue with Python 3.12 and Seaborn 0.13.0 that produces elongated jointplots. See screenshot below.

image

Here is what this should look like, running Python 3.11.4

image image
mwaskom commented 11 months ago

I would be surprised if this were really about the version of Python itself. You also have different versions of most dependencies. Do you have scipy installed, and if so, what version(s)?

Can you please also share a copy-paste-able example (using an example dataset) rather than a screenshot of code? That makes it much easier to help...

mwaskom commented 11 months ago

Any update on a reproducible example @cfreder2? I am not seeing this using an analogous built-in dataset:

import seaborn as sns
mpg = sns.load_dataset("mpg")
sns.kdeplot(mpg, x="horsepower", y="mpg")

image

So you will need to be in the loop to help debug as to the specifics of your data / environment...

justindubin commented 5 months ago

Hi, there. I am experiencing a very similar problem between Python 3.10.12 and 3.11.8. The exact same packages and code yield very different 2-D KDE plots. My package versions are attached.

The following was generated using Python 3.11.8: kde_2d_py311

The following was generated using Python 3.10.12: kde_2d_py310

requirements.txt