ScottPlot.NET
GitHub Repo stars

Interactive Rectangles

Interactive rectangles can be resized by dragging their edges or repositioned by dragging their bodies

ScottPlot.Plot myPlot = new();

for (int i = 0; i < 5; i++)
{
    CoordinateRect rect = Generate.RandomCoordinateRect();
    myPlot.Add.InteractiveRectangle(rect);
}

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