go(plot): set proper global min for axis label
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
75471ba6e8
commit
79ed004754
@ -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))
|
||||
|
||||
p.Y.Min = floats.Min(iter.Results)
|
||||
p.Y.Max = floats.Max(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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user