DataLogger Quickstart
Use a DataLogger to display growing datasets (such as sensor data). This plot type assumes that new data will always be added to the end of the existing data, so like SignalXY new data points must have an X value that is greater to or than or equal than the previous one. See the ScottPlot Demo for a live example of this plot type.
ScottPlot.Plot myPlot = new();
// setup a logger that will grow as data is added
var logger = myPlot.Add.DataLogger();
// simulate live data streaming in
for (int x = 0; x < 10; x++)
{
double y = Generate.RandomWalker.Next();
logger.Add(x, y);
}
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Live Data category
