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

ScaleBar クイックスタート

ScaleBar をプロットに追加すると、スケール情報を伝えられるため、軸フレーム、目盛り、ラベルを非表示にできます。

ScottPlot.Plot myPlot = new();

// サンプルデータをプロットする
myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());

// スケールバーを追加する
myPlot.Add.ScaleBar(5, 0.25);

// グリッドと軸ラベルを無効にする
myPlot.HideGrid();
myPlot.Axes.Frameless();

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