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

インタラクティブな垂直線分

垂直線分は、上端と下端をドラッグすることで垂直方向に拡張したり、中心線をドラッグすることで水平方向にスライドしたりできます。

ScottPlot.Plot myPlot = new();

for (int i = 1; i <= 5; i++)
{
    double x = i;
    double y1 = i;
    double y2 = i * 2;
    myPlot.Add.InteractiveVerticalLineSegment(x, y1, y2);
}

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