Add cmap argument to pairplot
See original GitHub issueTell 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:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rpgoldman can you confirm this is fixed?
Similarly to the
contour
case, it should be passed viahexbin_kwargs={"cmap": "plasma"}
. Does this work?backend_kwargs
are passed toplt.subplots
at figure-axes creation