seaborn icon indicating copy to clipboard operation
seaborn copied to clipboard

Elongated Jointplot Issue (Distorted graph)

Open cfreder2 opened this issue 1 year ago • 3 comments

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

cfreder2 avatar Nov 13 '23 15:11 cfreder2

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 avatar Nov 14 '23 00:11 mwaskom

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...

mwaskom avatar Nov 20 '23 12:11 mwaskom

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

justindubin avatar May 15 '24 01:05 justindubin