Ellipse Sector
An ellipse sector is the 2D shape formed by the area inside an ellipse between an arc around its edge and its center point.
ScottPlot.Plot myPlot = new();
Coordinates center = new(0, 0);
double radiusX = 2.0;
double radiusY = 1.0;
Angle start = Angle.FromDegrees(45);
Angle sweep = Angle.FromDegrees(135);
var cs = myPlot.Add.EllipticalSector(center, radiusX, radiusY, start, sweep);
cs.FillColor = Colors.Blue.WithAlpha(.2);
cs.LineColor = Colors.Black;
cs.LineWidth = 5;
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
