Random Colors
The simplest way to generate random colors is to create colors which have same saturation and luminosity but random hue.
ScottPlot.Plot myPlot = new();
for (int i = 0; i < 20; i++)
{
var sig = myPlot.Add.Signal(Generate.Sin());
sig.Data.XOffset = i * 3;
sig.Data.YOffset = i * .1;
sig.LineWidth = 3;
sig.LineColor = Color.RandomHue();
}
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Color category
