Line Plot Legend
Line plots with labels appear in the legend.
ScottPlot.Plot myPlot = new();
var sin = myPlot.Add.Signal(Generate.Sin());
sin.LegendText = "Sine";
var cos = myPlot.Add.Signal(Generate.Cos());
cos.LegendText = "Cosine";
var line = myPlot.Add.Line(1, 12, 12, 0);
line.LineWidth = 3;
line.MarkerSize = 10;
line.LegendText = "Line Plot";
myPlot.ShowLegend(Alignment.UpperRight);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Line Plot category
