-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
Calling DateTimeTicksBottom() twice causes crash. Infinite TimeSpan is not handled.
ScottPlot Version: 5.0.35
double[] data1 = ScottPlot.RandomDataGenerator.Generate.RandomWalk(count: 5001, mult: 1);
var rnd = new Random();
double[] x_vals = new double[data1.Length];
for (int i = 0; i < data1.Length; i++)
x_vals[i] = (DateTime.Now +TimeSpan.FromSeconds(i)).ToOADate();
//ScottPlot.Plot myPlot = new();
scottPlot.Plot.Add.SignalXY(x_vals, data1);
scottPlot.Width = 300;
scottPlot.Height = 100;
scottPlot.Plot.Axes.DateTimeTicksBottom();
scottPlot.Plot.Axes.DateTimeTicksBottom();Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels