Skip to content

Can't add subplot titles/horizontal spacing to 3d subplots #520

@jjc12

Description

@jjc12

I've got this:

fig = tools.make_subplots(
    rows = 2,
    cols = 2,
    specs = [
        [{'is_3d': True}, {'is_3d': True}],
        [{'is_3d': True}, {'is_3d': True}]
    ],
    horizontal_spacing = 0.001,
    vertical_spacing = 0.000001
)

and I'm unable to add this:

subplot_titles = ('title1', 'title2', 'title3', 'title4'),

I'm running 1.12.3. Here's the error when I try to add just one title, and it's the same if I do four:

Traceback (most recent call last):
  File "wildhorsesbf.py", line 514, in <module>
    subplot_titles = ('srbfb'),
  File "C:\Python27\lib\site-packages\plotly\tools.py", line 1312, in make_subplots
    plot_titles.append({'y': subtitle_pos_y[index],
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions