GitHub Repo stars

Circle with Locked Scale

For circles to always appear circular, the coordinate system must be forced to always display square-shaped pixels. This can be achieved by enabling the axis scale lock.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

Random rand = new(0);
for (int i = 0; i < 5; i++)
        xCenter: rand.Next(-10, 10),
        yCenter: rand.Next(-10, 10),
        radius: rand.Next(1, 7));

// force pixels to have a 1:1 scale ratio

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub