Skip to content

go.Figure should accept a scalar trace as data #1611

@emmanuelle

Description

@emmanuelle

For the case of a single trace in a figure, it would be very convenient if go.Figure could take a scalar trace as data parameter and not only a tuple or a list. For example at the moment you have to write

fig = go.Figure(data=[go.Scatter(...)])

It would be nice to be able to to

fig = go.Figure(data=go.Scatter(...))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions