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:
parent
67917edb90
commit
ec291de6ce
@ -13,7 +13,7 @@ plt.title("Acceleration, Velocity, and Altitude Plots")
|
|||||||
plt.plot(df.t, df.az)
|
plt.plot(df.t, df.az)
|
||||||
# plt.title("Acceleration vs Time")
|
# plt.title("Acceleration vs Time")
|
||||||
plt.xlabel("Time (s)")
|
plt.xlabel("Time (s)")
|
||||||
plt.ylabel("Acceleration (g" "s)")
|
plt.ylabel("Acceleration (m/s)")
|
||||||
|
|
||||||
# Velocity
|
# Velocity
|
||||||
plt.subplot(3, 1, 2)
|
plt.subplot(3, 1, 2)
|
||||||
@ -27,7 +27,7 @@ plt.subplot(3, 1, 3)
|
|||||||
plt.plot(df.t, df.z)
|
plt.plot(df.t, df.z)
|
||||||
# plt.title("Altitude vs Time")
|
# plt.title("Altitude vs Time")
|
||||||
plt.xlabel("Time (s)")
|
plt.xlabel("Time (s)")
|
||||||
plt.ylabel("Altitude (m)\n")
|
plt.ylabel("Altitude (m)")
|
||||||
|
|
||||||
plt.savefig("./public/AVA.png")
|
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.yaw, label="Yaw")
|
||||||
plt.plot(df.t, df.pitch, label="Pitch")
|
plt.plot(df.t, df.pitch, label="Pitch")
|
||||||
plt.plot(df.t, df.roll, label="Roll")
|
plt.plot(df.t, df.roll, label="Roll")
|
||||||
plt.xlabel("Time (ms)")
|
|
||||||
plt.ylabel("Euler Angles (deg)")
|
plt.ylabel("Euler Angles (deg)")
|
||||||
plt.legend()
|
plt.legend()
|
||||||
|
|
||||||
@ -49,6 +48,7 @@ plt.subplot(2, 1, 2)
|
|||||||
plt.plot(df.t, df.yawdot, label="Yaw")
|
plt.plot(df.t, df.yawdot, label="Yaw")
|
||||||
plt.plot(df.t, df.pitchdot, label="Pitch")
|
plt.plot(df.t, df.pitchdot, label="Pitch")
|
||||||
plt.plot(df.t, df.rolldot, label="Roll")
|
plt.plot(df.t, df.rolldot, label="Roll")
|
||||||
|
plt.ylabel("Angular Velocity (deg/s)")
|
||||||
plt.xlabel("Time (ms)")
|
plt.xlabel("Time (ms)")
|
||||||
plt.legend()
|
plt.legend()
|
||||||
|
|
||||||
@ -66,4 +66,4 @@ plt.title("Servo Positions")
|
|||||||
|
|
||||||
plt.savefig("./public/Servos.png")
|
plt.savefig("./public/Servos.png")
|
||||||
|
|
||||||
plt.show()
|
plt.show()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user