Skip to content

Streamplot examples for adding scatter plot data to graph does not work #1333

Open
@jonmmease

Description

@jonmmease

Originally reported by @TakodaS in plotly/plotly.py#1555


The streamline and source point example given does not work because the line fig['data'].append(source_point) throws an error message saying you can't append to a tuple. I There is an easy workaround:

new_data = [*fig['data'],source_point]
py.iplot(new_data, filename='streamline_source')

But as of now you are not able to append new data to an existing figure, which makes the example shown and the example in the create_streamline docstring fail to compile and I think this should be fixed.

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