Implement graph type selection

This commit is contained in:
DarkPhoenix
2019-05-21 19:47:55 +03:00
parent 8fae275e5a
commit ed7494b3a4
4 changed files with 24 additions and 14 deletions

View File

@@ -57,7 +57,7 @@ class FitDmgVsTimeGraph(Graph):
ys.append(currentY)
continue
# Last data point
if currentX > maxX:
if currentX >= maxX:
xs.append(maxX)
ys.append(prevY)
break
@@ -68,8 +68,6 @@ class FitDmgVsTimeGraph(Graph):
ys.append(prevY)
xs.append(currentX)
ys.append(currentY)
if currentX >= maxX:
break
return xs, ys
def getYForX(self, fit, extraData, x):

View File

@@ -25,7 +25,7 @@ from eos.utils.spoolSupport import SpoolType, SpoolOptions
from gui.utils.numberFormatter import roundToPrec
class FitDpsTimeGraph(Graph):
class FitDpsVsTimeGraph(Graph):
def getPlotPoints(self, fit, extraData, xRange, xAmount):
# We deliberately ignore xAmount here to build graph which will reflect
@@ -59,7 +59,7 @@ class FitDpsTimeGraph(Graph):
ys.append(currentY)
continue
# Last data point
if currentX > maxX:
if currentX >= maxX:
xs.append(maxX)
ys.append(prevY)
break
@@ -70,8 +70,6 @@ class FitDpsTimeGraph(Graph):
ys.append(prevY)
xs.append(currentX)
ys.append(currentY)
if currentX >= maxX:
break
return xs, ys
def getYForX(self, fit, extraData, x):