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

インタラクティブな線分

2つのドラッグ可能な点と、その間を結ぶ直線です。

ScottPlot.Plot myPlot = new();

for (int i = 0; i < 5; i++)
{
    CoordinateLine line = Generate.RandomLine();
    myPlot.Add.InteractiveLineSegment(line);
}

myPlot.SavePng("demo.png", 400, 300);
このレシピは、インタラクティブカテゴリに含まれる多くのレシピの1つです