ScottPlot.NET
GitHub Repo stars

FillY From Array Data

FillY plots can be created from X, Y1, and Y2 arrays.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

RandomDataGenerator dataGen = new(0);

int count = 20;
double[] xs = Generate.Consecutive(count);
double[] ys1 = dataGen.RandomWalk(count, offset: -5);
double[] ys2 = dataGen.RandomWalk(count, offset: 5);

var xyy = myPlot.Add.FillY(xs, ys1, ys2);
xyy.FillStyle.Color = Colors.Magenta.WithAlpha(100);

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub