Merge pull request #2371 from quizzmaster/dev
Fix scaling of the activity graph
This commit is contained in:
commit
6e38f52c7d
|
@ -371,7 +371,8 @@ public class GraphData {
|
||||||
actArrayHist.add(new ScaledDataPoint(time, act, actScale));
|
actArrayHist.add(new ScaledDataPoint(time, act, actScale));
|
||||||
else
|
else
|
||||||
actArrayPred.add(new ScaledDataPoint(time, act, actScale));
|
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()];
|
ScaledDataPoint[] actData = new ScaledDataPoint[actArrayHist.size()];
|
||||||
|
|
Loading…
Reference in a new issue