Skip to content
Snippets Groups Projects
Commit a3b274a7 authored by Lennard Geese's avatar Lennard Geese
Browse files

Remove testing function

parent 7ca360cc
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment