ScottPlot.NET
GitHub Repo stars

Signal Plot Styling

Signal plots can be styled in a variety of ways.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

var sig1 = myPlot.Add.Signal(Generate.Sin());
sig1.Color = Colors.Magenta;
sig1.LineWidth = 10;
sig1.Label = "Sine";

var sig2 = myPlot.Add.Signal(Generate.Cos());
sig2.Color = Colors.Green;
sig2.LineWidth = 5;
sig2.Label = "Cosine";

myPlot.ShowLegend();

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub