question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pairplot x_vars issue: First plot is not being displayed

See original GitHub issue

iris = sns.load_dataset("iris") sns.pairplot(data=iris, x_vars=['sepal_length', 'petal_length','petal_width'], y_vars=['sepal_width']); sns.pairplot(data=iris, x_vars=['','sepal_length', 'petal_length','petal_width'], y_vars=['sepal_width']); sns.pairplot(data=iris, x_vars=['sepal_length', '', 'petal_length','petal_width'], y_vars=['sepal_width']);

First plot of pairplot is not being displayed when using multiple variables in [x_vars.] (https://github.com/RPunyatoya/Seaborn-Issue/blob/master/Seaborn 0.11.0 Issue.ipynb) Also when giving wrong column name such as blank (‘’), It’s not throwing any error instead just displaying empty plot in the 1st place where as getting appropriate error when providing ‘’ as 2nd onward column name.

Capture

Thank you…!!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
HarishSreenivascommented, Jul 4, 2021

Hi. You can display the first plot using the below code:

sns.pairplot(diag_kind= None,data=iris, x_vars=[‘sepal_length’, ‘petal_length’,‘petal_width’], y_vars=[‘sepal_width’]) plt.show()

0reactions
gunjank775commented, Dec 16, 2020

@mmagnuski oh thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why seaborn's pairplot does not plot the first plot?
What may cause this issue? Here is the fully working code: import pandas as pd import seaborn as sns import matplotlib ...
Read more >
seaborn.pairplot — seaborn 0.12.1 documentation - PyData |
pairplot. Plot pairwise relationships in a dataset. By default, this function will create a grid of Axes such that each numeric variable in...
Read more >
Pairplot visualization - Medium
Pairplot visualizes given data to find the relationship between them where the variables can be continuous or categorical. Plot pairwise relationships in a...
Read more >
PairPlot and PairGrid in Python - Regenerative
Pair plots are several bivariate distributions in one plot and can be made using just one simple function. Even The most basic one...
Read more >
seaborn.pairplot — seaborn 0.9.0 documentation
The diagonal Axes are treated differently, drawing a plot to show the univariate distribution of the data for the variable in that column....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found