diff --git a/DataPlotter.py b/DataPlotter.py index 42efb5a5b814b42e57b735d62bd0986f46144e4f..4e28abc240a1545c7453398eae2974c703a6cec2 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