ScottPlot.NET
GitHub Repo stars

Clearing Plots

Use Clear() to remove all plottables.

ScottPlot.Plot myPlot = new();

// add plottables
myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());

// remove all plottables
myPlot.Clear();

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