ODE integrator for FF streamline produces NaNs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
While providing a current field to a FF streamline object, I get this error. This error happens even in current plotly version: e53e626d59495d440341751f60aeff73ff365c28 (The last commit I tested the workflow in)

The same field when provided to a matplotlib streamplot object produces the expected lines:

The only difference which I could see is the ODE integrator being used in matplotlib and plotly. I refer to
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/streamplot.py with matplotlib using Heun's method.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the NaNs with a current field supplied to an FF streamline object, then compare its ODE integration with matplotlib's lib/matplotlib/streamplot.py, which the issue identifies as using Heun's method. Done means the same field produces finite, expected streamline lines rather than NaNs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100