• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Aug 24th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. data = [[0, 0, 0, 0.4], [31.7, 9, 26, 2], [67, 28, 81, 1.7], [68, 29, 83, 1.7],
2.         [70.5, 30, 86, 1.7], [117.6, 56, 140, 1.3], [147, 72, 163, 1.1],
3.         [157, 77, 169, 1.1], [164, 81, 173, 1.1], [180, 89, 179, 1.0],
4.         [204.4, 134, 186, 3.6], [235, 227, 188, 3.6], [238, 236, 188, 3.6], [263.6, 355, 186, 8.1]]
5.
6. # https://space.stackexchange.com/questions/24754/why-jaxas-tilted-launch-from-a-tilted-rooftop
8.
9. import numpy as np
10. import matplotlib.pyplot as plt
11.
12. secs, downrange, altitude, velocity = np.array(data).T
13.
14. plt.figure()
15. plt.subplot(2, 1, 1)
16. plt.plot(downrange, altitude)
17. plt.plot(downrange, altitude, 'ok')
18. plt.title('altitude versus downrange distances (km)', fontsize=16)
19.
20. plt.subplot(4, 1, 3)
21. plt.plot(secs, downrange)
22. plt.plot(secs, downrange, 'ok')
23. plt.plot(secs, altitude)
24. plt.plot(secs, altitude, 'ok')
25. plt.title('altitude & downrange distances (km) versus time (sec)', fontsize=16)
26.
27. plt.subplot(4, 1, 4)
28. plt.plot(secs, velocity, 'ok')
29. plt.title('velocity (km/s) versus time (sec)', fontsize=16)
30. plt.show()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top