go(plot): set proper global min for axis label
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-07-08 19:04:05 +02:00
parent 75471ba6e8
commit 79ed004754
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -53,8 +53,13 @@ func plotAllDims(algoStats []stats.Stats, fPrefix, fExt string) {
// mark the end of the X axis with len(iter.Results).
p.X.Max = float64(len(iter.Results))
if floats.Min(iter.Results) < p.Y.Min {
p.Y.Min = floats.Min(iter.Results)
}
if floats.Max(iter.Results) > p.Y.Max {
p.Y.Max = floats.Max(iter.Results)
}
pts := make(plotter.XYs, len(iter.Results))