ScottPlot.NET
GitHub Repo stars

DataStreamer Quickstart

Use a DataStreamer to display streaming data using a fixed-length display with a fixed horizontal distance between points. This type of plot is ideal for signals like ECG (heart monitor) waveforms. This plot type has advanced customizations for controlling how new data replaces old data (e.g., slide the old data to the left as new data appears on the right or place new data values from left to right, then wrap around to the start and wipe away the oldest data values by replacing them from left to right again). See the ScottPlot Demo for a live example of this plot type.

ScottPlot.Plot myPlot = new();

// setup a streamer that shows the latest 100 points
var streamer = myPlot.Add.DataStreamer(100);

// simulate live data streaming in.
for (int x = 0; x < 123; x++)
{
    double y = Generate.RandomWalker.Next();
    streamer.Add(y);
}

// tell new data to overwrite old data from left to right
streamer.ViewWipeRight();

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Live Data category