Too much space between subplots using facet_row in express
See original GitHub issueplotly==4.1.1 plotly-express==0.4.0 jupyter-lab==1.1.4
When using px.scatter with color
and facet_row
, the figure adds a ton of space between subplots. Need to give it excessive height to make plots square.
Also, .update_layout( showlegend=False)
is not removing the legend. The figure below has 20 subplots.
px.scatter(comps_year, x = 'count', y = 'sum', color = 'YEAR', facet_row= 'COMPANY_CLEAN', width = 500, height = 9000).update_layout(showlegend=False)
When I remove the width
and height
parameters, it renders like this:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:19 (9 by maintainers)
Top Results From Across the Web
Facet and trellis plots in Python - Plotly
Facet plots, also known as trellis plots or small multiples, are figures made up of multiple subplots which have the same set of...
Read more >How to resize or set the size of plotly express facet subplots?
I would like to increase the size of each of these facet plots so that they are visualized better. Kindly provide me with...
Read more >How to remove horizontal spacing between subplots?
I have a figure with 2x2 subplots. I want to make the subplots side by side so that there is no spacing between...
Read more >Plotly Subplots With Nested Shared Xaxis - ADocLib
Improve subplot size/spacing with many subplots in matplotlib Matplotlib: how you can have two different barmodes simultaneously in Plotly subplots.
Read more >Plotly legend for each subplot - miocittadino.it
Legend groups can add a little extra spacing between legend items for ... Subplots in Python Subplots and Plotly Express Plotly Express is...
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
As of
plotly
4.9, we now have newfacet_row_spacing
andfacet_col_spacing
arguments: https://plotly.com/python/facet-plots/#controlling-facet-spacingWe should probably add facet_row_spacing as a kwarg 😃 and same for col