Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

円のクイックスタート

円をプロットに追加できます。円は、X 半径と Y 半径が同じ楕円です。プロットが正方形の座標系でない限り、円は楕円として表示されることに注意してください。

Ellipse.cs
ScottPlot.Plot myPlot = new();

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

myPlot.SavePng("demo.png", 400, 300);
このレシピは、楕円カテゴリに含まれる多数のレシピの 1 つです