Partial SignalXY Rendering
Even if a SignalXY plot references a large array of data, rendering can be limited to a range of values. If set,only the range of data between the minimum and maximum render indexes will be displayed.
ScottPlot.Plot myPlot = new();
double[] xs = Generate.Consecutive(1000);
double[] ys = Generate.RandomWalk(1000);
var sigAll = myPlot.Add.SignalXY(xs, ys);
sigAll.LegendText = "Full";
sigAll.Data.YOffset = 80;
var sigLeft = myPlot.Add.SignalXY(xs, ys);
sigLeft.LegendText = "Left";
sigLeft.Data.YOffset = 60;
sigLeft.Data.MaximumIndex = 700;
var sigRight = myPlot.Add.SignalXY(xs, ys);
sigRight.LegendText = "Right";
sigRight.Data.YOffset = 40;
sigRight.Data.MinimumIndex = 300;
var sigMid = myPlot.Add.SignalXY(xs, ys);
sigMid.LegendText = "Mid";
sigMid.Data.YOffset = 20;
sigMid.Data.MinimumIndex = 300;
sigMid.Data.MaximumIndex = 700;
myPlot.ShowLegend(Alignment.UpperRight);
myPlot.Axes.Margins(top: .5);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the SignalXY Plot category
