sharex, sharey, factorplot
See original GitHub issueI found a very small bug when using factorplot
.
sharex
, sharey
don’t get propagated to FacetGrid
, line 835 in linearmodels.py
.
Issue Analytics
- State:
- Created 9 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Python - seaborn.factorplot() method - GeeksforGeeks
share {x, y} : (optional) This parameter take bool, 'col', or 'row', If true, the facets will share y axes across columns and/or...
Read more >How to use the seaborn.factorplot function in seaborn - Snyk
To help you get started, we've selected a few seaborn.factorplot examples, ... sharex=True, sharey=False) else: ax = sns.factorplot(data=df, x='genome', ...
Read more >How to use sharex and sharey combined with aspect=equal ...
I would like to get something like the plot in the image below, that shows the axes shared as I mentioned above, keeping...
Read more >seaborn.catplot — seaborn 0.12.1 documentation - PyData |
Figure-level interface for drawing categorical plots onto a FacetGrid. This function provides access to several axes-level functions that show the relationship ...
Read more >Seaborn Multiple Plots: Subplotting with matplotlib and seaborn
sharex and sharey are used to share one or both axes between the charts (needed data to work). fig, axes = plt.subplots(1 ...
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
Hi @mwaskom ,
Let me say first, that I have not taken a good look at the code, so I don’t know how the interior works. In any case, when one specifies a
factor
asx
-axis, then I guess it can be expected thatsharex
is directly related to thex
parameter - even tough it being a factor. I don’t know if I explained well enough, but I expected the same would happen, as ifx
were numeric: the axis range is adapted to the data represented in the subplot.I don’t know if you agree and think it might be implemented? If not, I’d introduce a warning message saying something the like
sharex=False cannot be applied to a factor-axis
.I’ll go have a try with
FacetGrid
, thanks for the suggestion.Michael
Same issue here. Using
I can obtain a nice plot for data which are histogram-like (i.e., normalized count-per-bin; 30 bins with range [0, 200]):
However, the range for the left plot should definitely be larger. So I would like to have 30 bins with a range [0, 400] for the left plot and [0, 200] for the right plot. Plotting such a dataset now does not give a nice result:
This is because the x-factor is shared between the other grouping factors (e.g., grid column and row factors). I wonder if it would be possible to add a switch that would allow to disable explicitly this sharing of the x/y factors across column/rows.