plotly / plotly/plotly.py

ODE integrator for FF streamline produces NaNs

Open
#1,451 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
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)

image

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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.