replace math.degrees to np.rad2deg

This commit is contained in:
Atsushi Sakai
2018-10-24 18:30:52 +09:00
parent a164faa7f2
commit 97f0405ab7
10 changed files with 11 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ def main():
plt.legend()
flg, ax = plt.subplots(1)
plt.plot(s, [math.degrees(iyaw) for iyaw in cyaw], "-r", label="yaw")
plt.plot(s, [np.rad2deg(iyaw) for iyaw in cyaw], "-r", label="yaw")
plt.grid(True)
plt.legend()
plt.xlabel("line length[m]")