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

Enhancements and fixes to PairGrid #1824

Merged
merged 15 commits into from
Sep 5, 2019
Merged

Enhancements and fixes to PairGrid #1824

merged 15 commits into from
Sep 5, 2019

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Sep 4, 2019

A number of small enhancements are combined here:

  • Added the corner option to :class:PairGrid and :func:pairplot to make a grid with only the lower triangle of bivariate axes. (I don't believe there is an open issue about this but there's a popular SO question.)
iris = sns.load_dataset("iris")
g = sns.pairplot(iris, height=1.5, corner=True)

image

iris = sns.load_dataset("iris").drop("species", axis=1)
g = sns.PairGrid(iris, height=1.5, x_vars=iris.columns, y_vars=iris.columns[:3])
g.map_diag(sns.kdeplot)
g.map_offdiag(sns.scatterplot)

image

@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #1824 into v0.9 will decrease coverage by 0.01%.
The diff coverage is 93.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             v0.9    #1824      +/-   ##
==========================================
- Coverage   94.19%   94.18%   -0.02%     
==========================================
  Files          15       15              
  Lines        4532     4538       +6     
==========================================
+ Hits         4269     4274       +5     
- Misses        263      264       +1
Impacted Files Coverage Δ
seaborn/axisgrid.py 94.65% <93.33%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6669b46...4419502. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #1824 into v0.9 will increase coverage by 0.03%.
The diff coverage is 97.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##             v0.9    #1824      +/-   ##
==========================================
+ Coverage   94.19%   94.23%   +0.03%     
==========================================
  Files          15       15              
  Lines        4532     4541       +9     
==========================================
+ Hits         4269     4279      +10     
+ Misses        263      262       -1
Impacted Files Coverage Δ
seaborn/axisgrid.py 94.93% <97.7%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6669b46...fffc6e8. Read the comment docs.

@mwaskom mwaskom changed the title Generalize PairGrid diag_axes Enhancements and fixes to PairGrid Sep 4, 2019
@mwaskom mwaskom closed this Sep 5, 2019
@mwaskom mwaskom reopened this Sep 5, 2019
@mwaskom mwaskom merged commit 9cd3c51 into v0.9 Sep 5, 2019
@mwaskom mwaskom deleted the diag_axes_rect branch September 5, 2019 18:31
@mwaskom mwaskom mentioned this pull request Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants