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

PairGrid and pairplot for drawing scatterplot (and more!) matrices #262

Merged
merged 15 commits into from
Aug 28, 2014

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Aug 28, 2014

A new axisgrid object for drawing grids of paired plots. And a corresponding function for doing so easily.

Simple example:

sns.pairplot(iris, hue="species")

pairplot

More complex example:

g = sns.PairGrid(iris, diag_sharey=False)
g.map_lower(sns.kdeplot, cmap="Blues_d")
g.map_upper(plt.scatter)
g.map_diag(sns.kdeplot, lw=3)

pairplot_kde

Remaining todos:

  • Add more tests
  • Update release docs
  • Rename set_legend to add_legend (and deal with in re: FacetGrid)

I am not sure why it is failing on Travis but as that is very hard to debug I will choose to disable it for the time being
mwaskom added a commit that referenced this pull request Aug 28, 2014
PairGrid and pairplot for drawing scatterplot (and more!) matrices
@mwaskom mwaskom merged commit d58c1e8 into master Aug 28, 2014
@mwaskom mwaskom deleted the pair_grid branch August 28, 2014 19:22
@twiecki
Copy link

twiecki commented Aug 29, 2014

This is awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants