Legend Quickstart
Many plottables have a Label property that can be set so they appear in the legend.
ScottPlot.Plot myPlot = new();
var sig1 = myPlot.Add.Signal(Generate.Sin(51));
sig1.LegendText = "Sin";
var sig2 = myPlot.Add.Signal(Generate.Cos(51));
sig2.LegendText = "Cos";
myPlot.ShowLegend();
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Legends category
