Set Font Weight
Font weight can be customized.
ScottPlot.Plot myPlot = new();
myPlot.Font.Set("Calibri"); // apply to many existing plot labels
myPlot.Title("Hello, World");
FontWeight[] weights = [FontWeight.Light, FontWeight.Normal,
FontWeight.SemiBold, FontWeight.Bold, FontWeight.ExtraBlack];
for (int i = 0; i < weights.Length; i++)
{
FontWeight weight = weights[i];
myPlot.Font.Set("Calibri", weight: weight); // apply to new labels
var text = myPlot.Add.Text($"FontWeight.{weight}", 0, i);
text.LabelFontSize = 24;
}
myPlot.Axes.SetLimits(-1, 5, -2, weights.Length);
myPlot.HideGrid();
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Styling Plots category
