1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-06-16 15:17:23 +00:00

make plots a little prettier

This commit is contained in:
Anson Biggs 2021-09-17 14:13:47 -07:00
parent 67917edb90
commit ec291de6ce

View File

@ -13,7 +13,7 @@ plt.title("Acceleration, Velocity, and Altitude Plots")
plt.plot(df.t, df.az)
# plt.title("Acceleration vs Time")
plt.xlabel("Time (s)")
plt.ylabel("Acceleration (g" "s)")
plt.ylabel("Acceleration (m/s)")
# Velocity
plt.subplot(3, 1, 2)
@ -27,7 +27,7 @@ plt.subplot(3, 1, 3)
plt.plot(df.t, df.z)
# plt.title("Altitude vs Time")
plt.xlabel("Time (s)")
plt.ylabel("Altitude (m)\n")
plt.ylabel("Altitude (m)")
plt.savefig("./public/AVA.png")
@ -40,7 +40,6 @@ plt.title("Deflection and Angular Velocity Plots")
plt.plot(df.t, df.yaw, label="Yaw")
plt.plot(df.t, df.pitch, label="Pitch")
plt.plot(df.t, df.roll, label="Roll")
plt.xlabel("Time (ms)")
plt.ylabel("Euler Angles (deg)")
plt.legend()
@ -49,6 +48,7 @@ plt.subplot(2, 1, 2)
plt.plot(df.t, df.yawdot, label="Yaw")
plt.plot(df.t, df.pitchdot, label="Pitch")
plt.plot(df.t, df.rolldot, label="Roll")
plt.ylabel("Angular Velocity (deg/s)")
plt.xlabel("Time (ms)")
plt.legend()
@ -66,4 +66,4 @@ plt.title("Servo Positions")
plt.savefig("./public/Servos.png")
plt.show()
plt.show()