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.

Add cmap argument to pairplot

See original GitHub issue

Tell us about it

The coloring of a hexbin plot is controlled (at least with the matplotlib backend) by a cmap argument. This argument is not exposed to the programmer through the pairplot parameter set, and the backend plotting function ignores the backend_kwargs argument, so the programmer cannot control this except through setting the cmap parameters of the backend, potentially breaking other plots.

Thoughts on implementation

Probably the simplest method is to start using backend_kwargs instead of supporting cmap directly. Supporting cmap directly would be nicer, though, since it doesn’t require understanding the backend, and it would expose the cmap to the user in the docstring.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
canyon289commented, May 11, 2020

@rpgoldman can you confirm this is fixed?

1reaction
OriolAbrilcommented, Apr 20, 2020

Similarly to the contour case, it should be passed via hexbin_kwargs={"cmap": "plasma"}. Does this work?

backend_kwargs are passed to plt.subplots at figure-axes creation

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Seaborn Pairplot in Detail| Python Seaborn Tutorial
Seaborn Pairplot uses to get the relation between each and every variable present in Pandas DataFrame. It works like a seaborn scatter plot....
Read more >
Python - seaborn.pairplot() method - GeeksforGeeks
To plot multiple pairwise bivariate distributions in a dataset, you can use the .pairplot() function. The diagonal plots are the univariate ...
Read more >
Reduce number of plots in sns.pairplot() - Stack Overflow
I wrote: from itertools import combinations number_of_variables = 3 for columns_names in combinations(df.columns, number_of_variables): sns.
Read more >
Visualizing Data with Pairs Plots in Python | by Will Koehrsen
For this post we'll stick to plotting, and, if we want to explore our data even more, we can customize the pairplots using...
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