Skip to content

ScottPlot 5 Scatter Plot: data containing NaN and Infinity #3276

@Hub3r

Description

@Hub3r

Suggestion: With the release of ScottPlot 5 it seems that a feature where "gaps" were created on encounter a double.NaN value has been removed. As described here [https://scottplot.net/faq/nan/](in the 4.1 cookbook) I am asking that this feature be re-introduced.

var plt = new ScottPlot.Plot(600, 400);
var scatter1 = plt.AddScatter(xs, ys, Color.Gray);
var scatter2 = plt.AddScatter(xs, ysWithNan, Color.Black);
scatter2.OnNaN = ScottPlot.Plottable.ScatterPlot.NanBehavior.Gap;

scatter_nan_gap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions