horizontal spacing between facet plots
See original GitHub issuethe space between two plots in a facet plot is not large enough for the tick values. Hence the values overlap with the left adjacent figure (please see screenshot).
I use the command:
p9.facet_wrap(facets = 'currency', nrow=2, scales='free_y', shrink=True)
with plotnine 0.6 with Python 3.6.5 on Windows
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (6 by maintainers)
Top Results From Across the Web
ggplot: How to increase spacing between faceted plots?
Change spacing between facets on both axis p + theme(panel.spacing = unit(2, "lines")) # Change horizontal spacing between facets p + theme(panel.spacing.x ...
Read more >How to alter horizontal and/or vertical spacing between facets ...
ggplot2 has the ability to change the margins between a faceted plot using the argument panel.margin in opts . This seems to change...
Read more >Increase Space Between ggplot2 Facet Plot Panels in R ...
In this tutorial you'll learn how to add additional space between the panels of a ggplot2 facet grid plot in the R programming...
Read more >How to increase spacing between faceted plots using ggplot2 ...
As you can see in above graph that there is some space between facet grids which is around 0.2 cm By Default. To...
Read more >Increase the space between facets in a facetted plot created ...
To increase the space between facets in a facetted plot created by using ggplot2 in R, we can use theme function with panel.spacing...
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 FreeTop 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
Top GitHub Comments
thanks for coming back on this.
gg += p9.theme(subplots_adjust={'wspace':0.15})
helps to manually fix the issue. Do I understand correctly that this issue needs to wait for a better layout manager of Matplotlib?Since this a reoccurring question, and we can’t solve it properly, maybe we could add a warning that, if you’re using facet…(ncol>1) and a free y axis and no subplots_adjust, suggests the user to use subplots_adjust?
Yes that’s ugly, but the current situation is plain bad and the workaround is difficult to find for the users.