Skip to content

Can't set numbered subplot axis using update in plotly.py 3.0.0 #1050

Closed
@slishak

Description

@slishak

I can create a Layout with a yaxis2 attribute using the following methods:

layout1 = go.Layout(yaxis2={'title': 'y2'})

layout2 = go.Layout()
layout2.yaxis2 = {'title': 'y2'}

layout3 = go.Layout()
layout3['yaxis2'] = {'title': 'y2'}

but not like this:

layout4 = go.Layout()
layout4.update(yaxis2={'title': 'y2'})

layout5 = go.Layout()
layout5.update({'yaxis2': {'title': 'y2'}})

because only xaxis and yaxis are valid properties for a Layout in the schema, so I get a ValueError.

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