Skip to content

Scatter plot - support for plotting data with gaps? #976

@swharden

Description

@swharden

This is an extremely common task/question, and was most recently brought-up in #947. There isn't a great way to do this with ScottPlot right now. This topic has its own FAQ page https://swharden.com/scottplot/faq/data-gaps

image

I know we go back and forth on how to handle double.NaN, but perhaps scatter plots could be modified in some way to recognize when lines start and stop (separated by NaN), and call System.Drawing.DrawLines() multiple times. Implementing this properly may also solve other problems related to NaN, and be an alternative to adjusting min and max render index 🤔

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