ScottPlot.NET
GitHub Repo stars

Polygon Plot Quickstart

Polygon plots can be added from a series of vertices, and must be in clockwise order.

ScottPlot.Plot myPlot = new();

Coordinates[] points =
{
    new(0,   0.25),
    new(0.3, 0.75),
    new(1,   1),
    new(0.7, 0.5),
    new(1,   0)
};

myPlot.Add.Polygon(points);

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Shapes category