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

SignalXY クイックスタート

SignalXY プロットは、X 値が常に昇順である X/Y データ向けの高性能なプロットタイプです。

ScottPlot.Plot myPlot = new();

// 欠損を含むサンプルデータを生成する
List<double> xList = new();
List<double> yList = new();
for (int i = 0; i < 5; i++)
{
    xList.AddRange(Generate.Consecutive(1000, first: 2000 * i));
    yList.AddRange(Generate.RandomSample(1000));
}
double[] xs = xList.ToArray();
double[] ys = yList.ToArray();

// SignalXY プロットを追加する
myPlot.Add.SignalXY(xs, ys);

myPlot.SavePng("demo.png", 400, 300);
このレシピは、SignalXY プロットカテゴリにある多数のレシピの 1 つです