3import matplotlib.pyplot
as plt
19with open(
"spline0.txt",
"r")
as file:
24 x_values0.append(float(x))
25 y_values0.append(float(y))
27with open(
"spline1.txt",
"r")
as file:
32 x_values1.append(float(x))
33 y_values1.append(float(y))
36plt.plot(ox_values0, oy_values0,
"g-", label=
"Corrected Track Limits")
37plt.plot(ox_values1, oy_values1,
"g-")
39plt.plot(x_values0, y_values0,
"r-", label=
"Spline Approximation")
40plt.plot(x_values1, y_values1,
"r-")
43plt.plot(rx_values0, ry_values0,
"bo", label=
"Uncorrected Blue Cones", markersize=5)
44plt.plot(rx_values1, ry_values1,
"yo", label=
"Uncorrected Yellow Cones", markersize=5)