Skip to content

FigureWidget shapes property is empty, even when it's populated in _props #5309

@scott-8

Description

@scott-8

When using FigureWidget, the shapes property does not update properly.

Here is an example:

fig = go.Figure()
fig.update_layout(
    modebar={"add": ["drawline", "drawclosedpath", "eraseshape"]},
)
widget = go.FigureWidget(fig)
widget.show()

When I draw a shape, widget.layout["shapes"] remains empty. On the other hand, widget.layout._props["shapes"] is populated correctly.

This is using Plotly 6.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions