ScottPlot.NET
GitHub Repo stars

Polygon Plot Quickstart

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

This code sample is specific to ScottPlot 5 (details)
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);

Edit on GitHub