Make_subplots: specify only row/col if cols=1/rows=1
See original GitHub issueWhen using make_subplot()
with multiple rows and cols=1
, I think it should suffice to specify only row
.
For instnace, this should work:
y = np.random.normal(scale=0.1, size=500)
fig = go.FigureWidget(make_subplots(rows=2, cols=1))
fig.add_scatter(y=np.cumsum(y), row=1)
fig.add_scatter(y=y, row=2)
fig.layout.update(showlegend=False)
fig
Similarly with rows=1
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
plotly.subplots.make_subplots — 5.11.0 documentation
Assign shared (linked) x-axes for 2D cartesian subplots ... Only valid if type='xy'. ... cell (tuple, default=(1,1)): (row, col) index of the.
Read more >Plotly (python) subplot raises error when specifying row and ...
It is a simplified version of a longer code which I stripped to include only the plotting part of interest. The variables SPD...
Read more >plotly package — 5.11.0 documentation - Plotly Help Center
If 'all', addresses all rows in the specified column(s). If both row and col are None, addresses the first subplot if subplots exist,...
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
@sursu I see what you mean now. I was confused and thought you were referring to the make_subplots function itself. I will wait for the PR and take try to take a look to it afterwards
You’re missing something. This doesn’t work: