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

レンダーインデックスによる表示の制限

散布図には非常に大量のデータが含まれる場合がありますが、その多くは未入力である可能性があります。ユーザーは最小および最大レンダーインデックスを定義でき、散布図がレンダリングされる際には、その範囲内の値のみが表示されます。

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

double[] xs = Generate.Consecutive(51);
double[] ys = Generate.Sin(51);

var sp = myPlot.Add.Scatter(xs, ys);
sp.MinRenderIndex = 10;
sp.MaxRenderIndex = 40;

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