Fix scaling of the activity graph

This commit is contained in:
Sebastian Lenz 2020-01-16 12:45:55 +01:00
parent 31edddc5cf
commit ef4903253d

View file

@ -371,7 +371,8 @@ public class GraphData {
actArrayHist.add(new ScaledDataPoint(time, act, actScale));
else
actArrayPred.add(new ScaledDataPoint(time, act, actScale));
if (act > maxIAValue) maxIAValue = act;
maxIAValue = Math.max(maxIAValue, Math.abs(act));
}
ScaledDataPoint[] actData = new ScaledDataPoint[actArrayHist.size()];