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

棒グラフクイックスタート

棒グラフは、一連の値から追加できます。

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

// 棒を追加する
double[] values = { 5, 10, 7, 13 };
myPlot.Add.Bars(values);

// 棒の下に余白を設けずにプロットを自動スケールする
myPlot.Axes.Margins(bottom: 0);

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