ScaleBar Single Dimension
Set Width or Height to 0 to cause the ScaleBar to use a single axis only
ScottPlot.Plot myPlot = new();
// plot sample data
myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());
// add a scale bar
var scalebar = myPlot.Add.ScaleBar(7, 0);
scalebar.LineWidth = 2;
scalebar.XLabel = "70 ms";
scalebar.XLabelStyle.Bold = true;
scalebar.LabelPadding = new(0);
// disable the grid and axis labels
myPlot.HideGrid();
myPlot.Axes.Frameless();
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Scale Bar category
