ScottPlot.NET
GitHub Repo stars

Signal Scaling

Signal plots can be scaled vertically according to a user-defined amount.

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

// plot values between -1 and 1
double[] values = ScottPlot.Generate.Sin(51);
var signal = myPlot.Add.Signal(values);

// increase the vertical scaling
signal.Data.YScale = 500;

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

Edit on GitHub