Skip to content
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

add streamline plots #1435

Open
highfieldjames opened this issue Mar 2, 2017 · 5 comments
Open

add streamline plots #1435

highfieldjames opened this issue Mar 2, 2017 · 5 comments
Labels
feature something new P3 backlog

Comments

@highfieldjames
Copy link

Streamline plots are implemented in the Python and Matlab distributions of Plotly. Is the implementation of this plot type in Plotly.js on the current roadmap? If not, please consider this a feature request.

@etpinard etpinard added the feature something new label Mar 2, 2017
@henryJack
Copy link

Streamline plots are really useful for displaying scalar and vector fields, is there any update on this? It would be an awesome feature!

@jackparmer
Copy link
Contributor

3D streamtubes and cone plots are currently development in plotly.js, here is a preview:

image

image

If your company is available cosponsor a 2d effort, please reach out

@henryJack
Copy link

These look absolutely glorious. Can't wait for the full release

@jackparmer
Copy link
Contributor

The 3d versions were completed several years ago, sorry this issue was never updated:

2d Plotly streamline plots currently still only exist for Python. There are no plans currently for a native plotly.js 2d streamline trace type.

@asgolovin
Copy link

asgolovin commented Mar 24, 2023

Hey, any news on this? :) We need a js version of streamline plots for a project I'm working on, so I will work on implementing at least a script to compute and draw streamlines using existing scatter plots. The optimistic plan would be to create a new trace type and open a PR, but let's see how the first step goes and where it leaves my ambitions. 😅 Do I understand it correctly that it is possible to add a trace type which internally uses existing drawing functions like scatter? If so, can someone point me to an example of a trace type which does something similar? :)

For the algorithm, I was looking at the Matplotlib implementation which uses the second-order Heun's method with an adaptive step size. They argue in the comments that the Heun's method is preferable in this case to the non-adaptive RK4 method which is used in the plotly's python implementation. In the hypothetical case that this work does lead to a PR - do you guys have any strong opinions on the matter?

@gvwilson gvwilson self-assigned this Jun 10, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title Feature Request: Streamline Plots add streamline plots Aug 8, 2024
@gvwilson gvwilson added the P3 backlog label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

6 participants