When combining Plotly plots using subplots, the middle plot shrinks
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reproducing the unequal subplot heights with ncol and nrow greater than two, then trace how subplot margins are calculated and applied. Done means the rows or columns have equal plot heights while preserving the requested margins, with regression coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100