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.

horizontal spacing between facet plots

See original GitHub issue

the 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).

image

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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
kraxlicommented, Jan 6, 2020

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?

3reactions
TyberiusPrimecommented, Jan 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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