Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
plot_track.py
Go to the documentation of this file.
1# pylint: skip-file
2# mypy: ignore-errors
3import matplotlib.pyplot as plt
4
5xTrackList = []
6yTrackList = []
7xMidList = []
8yMidList = []
9
10colorList = []
11count = 0
12
13print(len(xTrackList))
14
15with open("../tracks/finalPath.txt", "r") as f:
16 for line in f:
17 lineList = line.split(" ")
18 xMidList.append(float(lineList[0]))
19 yMidList.append(float(lineList[1]))
20 colorList.append("#00aa00")
21
22plt.scatter(xTrackList + xMidList, yTrackList + yMidList, s=5, c=colorList)
23plt.axis("equal")
24plt.show()