Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit bc28f69b authored by Michael KRISPER's avatar Michael KRISPER
Browse files

corrected error in autoscaling for graphwriter (minX must not be the same value as maxX)

parent d622cb71
Branches
Tags
No related merge requests found
......@@ -122,8 +122,8 @@ namespace TUGraz.VectoCore.Tests.Utils
var series3 = CreateSeries("v_target", legend, chartArea, chart, Color.Green, x, y3);
var min = Math.Min(y3.Min(), y.Min());
var max = Math.Max(y3.Max(), y.Max());
chartArea.AxisY.Minimum = Math.Floor(min - (max - min) * 0.1);
chartArea.AxisY.Maximum = Math.Ceiling(max + (max - min) * 0.1);
chartArea.AxisY.Minimum = Math.Floor(min - (max - min) * 0.1 - 1);
chartArea.AxisY.Maximum = Math.Ceiling(max + (max - min) * 0.1 + 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment