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();

// -1 から 1 までの値をプロットする
double[] values = ScottPlot.Generate.Sin(51);
double[] xs = ScottPlot.Generate.Consecutive(51);
var signalXY = myPlot.Add.SignalXY(xs, values);

// 垂直方向のスケーリングを増やす
signalXY.Data.YScale = 500;

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