ScottPlot.NET
GitHub Repo stars

Set Axis Limits

Axis Limits can be set by the user.

ScottPlot.Plot myPlot = new();

myPlot.Add.Signal(Generate.Sin(51));
myPlot.Add.Signal(Generate.Cos(51));

myPlot.Axes.SetLimits(-100, 150, -5, 5);

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Axis and Ticks category