Vertical SignalXY with Inverted X Axis
Demonstrates how to display a rotated SignalXY plot (so it goes from bottom to top) which is also displayed on an inverted horizontal axis (where positive values are on the left).
ScottPlot.Plot myPlot = new();
// add a signal plot
double[] xs = Generate.Consecutive(5_000);
double[] ys = Generate.Sin(count: xs.Length, oscillations: 4);
// rotate it so it is vertical
var signal = myPlot.Add.SignalXY(xs, ys);
signal.Data.Rotated = true;
// invert the horizontal axis
myPlot.Axes.SetLimitsX(1, -1);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the SignalXY Plot category
