ScottPlot.NET
GitHub Repo stars

SignalXY Scaling

SignalXY 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);
double[] xs = ScottPlot.Generate.Consecutive(51);
var signalXY = myPlot.Add.SignalXY(xs, values);

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

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

Edit on GitHub