From a3b274a7594ef9d9428e4f4808b9d5c3390a3b1a Mon Sep 17 00:00:00 2001 From: Lennard Geese <lennard.geese@sva.de> Date: Fri, 11 Apr 2025 16:10:56 +0200 Subject: [PATCH] Remove testing function --- DataPlotter.py | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/DataPlotter.py b/DataPlotter.py index 42efb5a..4e28abc 100644 --- a/DataPlotter.py +++ b/DataPlotter.py @@ -49,29 +49,4 @@ class DataPlotter(DataHandler): axis.grid(which='major', alpha=0.5) plt.tight_layout() - plt.show() - - - def plotBackgroundPaintTest(self): - - laps: int = 50 - overtakesPerLap: list[int] = [random.randint(0,10) for _ in range(laps)] - firstTireChange: int = random.randint(10, 20) - lastTireChange: int = random.randint(30, 40) - - isWeatherChanging: list[bool] = [False] * laps - for lap in range(laps): - if firstTireChange <= lap <= lastTireChange: - isWeatherChanging[lap] = True - - colormap = mpl.colors.ListedColormap(['white', 'blue']) - dataFrame = pd.DataFrame(overtakesPerLap) - dataFrame[1] = isWeatherChanging - axis = dataFrame[0].plot() - axis.pcolorfast(axis.get_xlim(), axis.get_ylim(), - dataFrame[1].values[np.newaxis], - cmap=colormap, alpha=0.3) - - plt.show() - - + plt.show() \ No newline at end of file -- GitLab