Set Font Slant
Font slant can be customized.
ScottPlot.Plot myPlot = new();
myPlot.Font.Set("Calibri", slant: FontSlant.Italic); // apply to many existing plot labels
myPlot.Title("Hello, World");
FontSlant[] slants = [FontSlant.Upright, FontSlant.Italic, FontSlant.Oblique];
for (int i = 0; i < slants.Length; i++)
{
FontSlant slant = slants[i];
myPlot.Font.Set("Calibri", slant: slant); // apply to new labels
var text = myPlot.Add.Text($"FontSlant.{slant}", 0, i);
text.LabelFontSize = 24;
}
myPlot.Axes.SetLimits(-1, 5, -1, slants.Length);
myPlot.HideGrid();
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Styling Plots category
