4import matplotlib.pyplot
as plt
7startLine, endLine = -0.3, 100.0
21for i
in np.arange(0, 75.01, 5):
24 colorList.append(
"#0000ff")
27for i
in np.arange(0, 75.01, 5):
30 colorList.append(
"#ff0000")
33for i
in np.arange(startLine, endLine, abs(endLine - startLine) // straightPoints):
38 colorList.append(
"#00aa00")
45print(len(yPoints + yCones))
49for i
in range(len(yCones)):
50 yCones[i], xCones[i] = -xCones[i], yCones[i]
53for i
in range(len(yPoints)):
54 yPoints[i], xPoints[i] = -xPoints[i], yPoints[i]
57f1 = open(
"acceleration.txt",
"w")
58for i
in range(0, len(xPoints)):
59 f1.write(f
"{xPoints[i]} {yPoints[i]}\n")
63f2 = open(
"acceleration_map.txt",
"w")
64for i
in range(0, len(xCones)):
65 f2.write(f
"{xCones[i]} {yCones[i]}\n")
69plt.scatter(xCones + xPoints, yCones + yPoints, s=2, c=colorList)
double round(double number, int n)
round to n decimal places