Skip to content

When combining Plotly plots using subplots, the middle plot shrinks #2434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Siva-Santhiya opened this issue Apr 4, 2025 · 1 comment
Open

Comments

@Siva-Santhiya
Copy link

When combining Plotly plots using subplots, if ncol is 2 and nrow is greater than 2, the height of the middle row is smaller compared to the top and bottom plots. Similarly, if nrow is 2 and ncol is greater than 2, the height of the middle column is smaller compared to the first and last plots. This discrepancy occurs because the margin values are not applied consistently; the top margin value is not applied to the top plot, and the bottom margin value is not applied to the bottom plot. Is there any workaround to get all plot in same height

@romanzenka
Copy link

This is a duplicate of similar issues #2378, #2144 and #2057.

You are right, it is all about the borders of the plot not having margins applied to them, I do not know of a workaround right now. Being able to force margins to be applied consistently would make sense, but I am afraid it might break some code, possibly for people using only 2x2 grids of subplots where current behavior might be preferred and this bug would not be visible as there are no middle columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants