Skip to content

Strip out go.Layout.whatever from docs #2093

Closed
@nicolaskruchten

Description

@nicolaskruchten

Right now in places like https://plot.ly/python/shapes/ we still use go.layout.Shape in places where this is unnecessary... instead of .add_shape(go.layout.Shape( whatever )) we can just use .add_shape( whatever ).

@Mahdis-z please do a search for go.layout. (note the trailing dot!) and refactor all those instances into either straight dicts or, in cases of add_shape above, just remove the intermediate object and pass the kwargs directly. You can't just do a blind search-and-replace though because in certain cases we show the old usage on purpose :)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions