ScottPlot / ScottPlot/ScottPlot
On a signal plot lines with Double.NaN values are only visible if you cannot see the Double.NaN value.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.8k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
So, you make the simplest signal chart, and add at the beginning or end some double.NaN values., While the chart has all the values in view (let's say 100 values, and the first 10 are double.NaN in a zoom to fit state), you cannot see the line, but when you zoom in to see like the middle section of the line (where the double.NaN values are outside the visible area), the signal plot becomes visible. Once you zoom out again to have the beginning of the signal plot in view with Double.NaN values in it the signal line disappears again.
Expected behavior is that all double.nan values are just not plotted and their positions skipped, I guess.
ScottPlot Version: 5.0.55 in winforms
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
Start by reproducing the issue in a WinForms signal chart using leading or trailing Double.NaN values, then trace the signal plot's handling of NaN values during zoom-to-fit and zoom changes. Done means the visible line remains rendered while NaN positions are skipped, including when the NaN values are in the viewport.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100