Bars with Error
Bars can have errorbars.
ScottPlot.Plot myPlot = new();
ScottPlot.Bar[] bars =
{
new() { Position = 1, Value = 5, Error = 1, FillColor = Colors.Red },
new() { Position = 2, Value = 7, Error = 2, FillColor = Colors.Orange },
new() { Position = 3, Value = 6, Error = 1, FillColor = Colors.Green },
new() { Position = 4, Value = 8, Error = 2, FillColor = Colors.Blue },
};
myPlot.Add.Bars(bars);
// tell the plot to autoscale with no padding beneath the bars
myPlot.Axes.Margins(bottom: 0);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Bar Plot category
