jointplot plot_marginals boxplot
See original GitHub issueIs it possible to generate a jointplot with boxplots as marginals instead of a distplot?
From the arguments it obviously does not seem possible and the error is throwing when I force it suggests that as well:
g.plot_marginals(sns.boxplot)
> TypeError: boxplot() got an unexpected keyword argument 'vertical'
Is this a feasible feature request? Or is there any alternative within seaborn to achive something similar?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
python - How to overlay a Seaborn jointplot with a "marginal ...
I have plotted a Seaborn JointPlot from a set of "observed counts vs concentration" which are stored in a pandas DataFrame .
Read more >seaborn.jointplot — seaborn 0.12.1 documentation - PyData |
An object managing multiple subplots that correspond to joint and marginal axes for plotting a bivariate relationship or distribution. See also. JointGrid. Set ......
Read more >Understanding the jointplot vs jointgrid and the seaborn ...
Learn about the seaborn JointGrid in this Python seaborn tutorial video. I begin by explaining what is the joint grid and how it...
Read more >Marginal distribution plots in Python
Marginal distribution plots are small subplots above or to the right of a main plot, which show the distribution of data along only...
Read more >Marginal Plot with Seaborn - Python Graph Gallery
This post explains how to draw a marginal plot using jointplot() function of seaborn. Several examples are given using scatterplot, hexbin and density...
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
I solved my problem by hacking the
marginal_boxplot
function and defining there the data.frame and the variables to plot.It’s definitely not portable to other situations but in case it is useful for anyone else I leave it here the code and the outcome plot.
Yes, I’m saying that once the
JointGrid
is created, you don’t have to use its methods to plot things on it. It has an attribute calledax_joint
that is simply the underlying matplotlib axes and can be passed to any axes-level seaborn function (or any of its plotting methods can be called if you want to use matplotlib directly).