Skip to content

plotly.tools.make_subplots() breaks down if rows>=100 #1031

Closed
@oiegorov

Description

@oiegorov

For some reason all data in subplots get jumbled up if 'rows' is 100 or higher. It works fine for rows=99. Here is an example code:

N = 100
v_space = 0

fig = tools.make_subplots(
    rows=N,
    cols=1,
    vertical_spacing=v_space
)

for i in range(N):
    x1 = 1
    y1 = 1
    trace = go.Scatter(
        x=[x1],
        y=[y1],
    )
    fig.append_trace(trace, i + 1, 1)

fig['layout'].update(height=N * 200)
py.iplot(fig)

If vertical_spacing is not zero and fig['layout'].update(height=N*(200+vertical_spacing)), it breaks down for smaller values of 'rows'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions