From a8a5fabce7c5d6630612333f331dbb2ec4f5d4eb Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Tue, 28 May 2019 16:33:30 +0300 Subject: [PATCH] Always add last data point to dps over time graph --- eos/graph/fitDpsVsTime.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eos/graph/fitDpsVsTime.py b/eos/graph/fitDpsVsTime.py index 830b3948b..b1c4ab58e 100644 --- a/eos/graph/fitDpsVsTime.py +++ b/eos/graph/fitDpsVsTime.py @@ -34,6 +34,7 @@ class FitDpsVsTimeGraph(Graph): if fit.ID not in self._cache: self.__generateCache(fit, maxX) currentY = None + prevY = None xs = [] ys = [] cache = self._cache[fit.ID] @@ -70,6 +71,9 @@ class FitDpsVsTimeGraph(Graph): ys.append(prevY) xs.append(currentX) ys.append(currentY) + if max(xs) < maxX: + xs.append(maxX) + ys.append(currentY or 0) return xs, ys def getYForX(self, fit, extraData, x):