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 プロットは汎用リストをサポートしています。

ScottPlot.Plot myPlot = new();

// 初期データを含む X と Y のリストを作成する
List<double> xs = new(Generate.Consecutive(count: 10, first: 0));
List<double> ys = new(Generate.RandomSample(10));

// X と Y のリストから信号プロットを作成する
myPlot.Add.SignalXY(xs, ys);

// データは後からリストに追加できる
xs.AddRange(Generate.Consecutive(count: 10, first: 50));
ys.AddRange(Generate.RandomSample(10));

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