Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonmmease opened this issue May 10, 2019 · 0 comments
Open

Comments

@jonmmease
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant