水平棒グラフ
棒グラフは水平方向に表示できます。
ScottPlot.Plot myPlot = new();
ScottPlot.Bar[] bars =
{
new() { Position = 1, Value = 5, Error = 1, },
new() { Position = 2, Value = 7, Error = 2, },
new() { Position = 3, Value = 6, Error = 1, },
new() { Position = 4, Value = 8, Error = 2, },
};
var barPlot = myPlot.Add.Bars(bars);
barPlot.Horizontal = true;
myPlot.Axes.Margins(left: 0);
myPlot.SavePng("demo.png", 400, 300);
このレシピは、棒グラフカテゴリに含まれる多数のレシピのうちの1つです
