Palettes
A palette is a set of colors, and the Plot’s palette defines the default colors to use when adding new plottables. https://scottplot.net/cookbook/5/palettes/ displays all palettes included with ScottPlot.
ScottPlot.Plot myPlot = new();
// change the default palette used when adding new plottables
myPlot.Add.Palette = new ScottPlot.Palettes.Nord();
for (int i = 0; i < 5; i++)
{
double[] data = Generate.Sin(100, phase: -i / 20.0f);
var sig = myPlot.Add.Signal(data);
sig.LineWidth = 3;
}
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Styling Plots category
