Arc
An arc is a curve along the partial circumference of a circle. The circle starts at the far right and extends counter-clockwise.
ScottPlot.Plot myPlot = new();
Coordinates center = new(0, 0);
double radius = 1.0;
Angle start = Angle.FromDegrees(45);
Angle sweep = Angle.FromDegrees(135);
var circle = myPlot.Add.Circle(center, radius);
circle.FillColor = Colors.Blue.WithAlpha(.2);
circle.LineWidth = 0;
var arc = myPlot.Add.Arc(center, radius, start, sweep);
arc.LineWidth = 5;
arc.LineColor = Colors.Black;
myPlot.Axes.SquareUnits(); // use square units so circles are not stretched
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Shapes category
