Advertisement
Guest User

Untitled

a guest
Apr 12th, 2019
244
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bob = """2017 Sep 19 16:51  2017 Sep 18 23:42:36    42.7815 0.00028 10.5158 239.0919    121.0654    15.59029    6.000
  2. 2017 Sep 18 16:51   2017 Sep 17 18:42:40    42.7845 0.00026 10.9946 238.4006    121.0654    15.59029    6.000
  3. 2017 Sep 17 16:51   2017 Sep 16 11:39:32    42.7843 0.00020 11.5068 189.8796    121.0654    15.59029    6.000
  4. 2017 Sep 16 16:51   2017 Sep 15 12:40:15    42.7842 0.00016 11.8863 185.6588    121.0654    15.59029    6.000
  5. 2017 Sep 15 16:51   2017 Sep 14 12:48:33    42.7844 0.00016 12.2802 176.5834    121.0654    15.59029    6.000
  6. 2017 Sep 14 16:51   2017 Sep 13 13:44:19    42.7816 0.00019 12.6608 169.8657    121.0654    15.59029    6.000
  7. 2017 Sep 13 16:51   2017 Sep 13 07:26:12    42.7815 0.00018 12.7648 167.4390    121.0654    15.59029    6.000
  8. 2017 Sep 12 16:51   2017 Sep 11 06:28:55    42.7824 0.00004 13.5869 104.3702    121.0654    15.59029    6.000
  9. 2017 Sep 11 16:51   2017 Sep 11 06:28:55    42.7824 0.00004 13.5869 104.3702    121.0654    15.59029    6.000
  10. 2017 Sep 10 16:51   2017 Sep 10 13:46:04    42.7833 0.00005 13.8623 116.1134    121.0654    15.59029    6.000
  11. 2017 Sep 09 16:51   2017 Sep 09 06:58:25    42.7838 0.00008 14.3699 50.9607 121.0654    15.59029    6.000
  12. 2017 Sep 08 16:51   2017 Sep 06 17:34:51    42.7820 0.00013 15.3824 8.0852  121.0654    15.59029    6.000
  13. 2017 Sep 07 16:51   2017 Sep 06 17:34:51    42.7820 0.00013 15.3824 8.0852  121.0654    15.59029    6.000
  14. 2017 Sep 06 16:51   2017 Sep 02 22:20:22    42.7838 0.00018 16.8872 351.7843    121.0654    15.59029    6.000
  15. 2017 Sep 05 16:51   2017 Sep 02 22:20:22    42.7838 0.00018 16.8872 351.7843    121.0654    15.59029    6.000
  16. 2017 Sep 04 16:51   2017 Sep 02 22:20:22    42.7838 0.00018 16.8872 351.7843    121.0654    15.59029    6.000
  17. 2017 Sep 03 16:51   2017 Sep 02 22:20:22    42.7838 0.00018 16.8872 351.7843    121.0654    15.59029    6.000
  18. 2017 Sep 03 03:43   2017 Sep 02 22:20:22    42.7838 0.00018 16.8872 351.7843    121.0654    15.59029    6.000
  19. 2017 Sep 02 16:51   2017 Sep 02 10:18:54    42.7836 0.00018 17.0854 349.5586    121.0654    15.59029    6.000
  20. 2017 Sep 01 16:51   2017 Sep 01 11:15:54    42.7836 0.00018 17.4656 343.9133    121.0654    15.59029    6.000
  21. 2017 Aug 31 16:51   2017 Aug 31 07:40:15    42.7838 0.00020 17.9204 340.5752    121.0654    15.59029    6.000
  22. 2017 Aug 30 16:51   2017 Aug 30 13:00:59    42.7838 0.00020 18.2281 335.5232    121.0654    15.59029    6.000
  23. 2017 Aug 29 16:51   2017 Aug 29 10:53:43    42.7836 0.00021 18.6589 328.4860    121.0654    15.59029    6.000
  24. 2017 Aug 28 16:51   2017 Aug 27 21:19:23    42.7834 0.00020 19.2783 339.5513    121.0654    15.59029    6.000
  25. 2017 Aug 27 16:51   2017 Aug 26 21:25:53    42.7834 0.00023 19.6720 337.7727    121.0654    15.59029    6.000
  26. 2017 Aug 26 16:51   2017 Aug 26 13:42:35    42.7841 0.00023 19.7993 335.6957    121.0654    15.59029    6.000
  27. 2017 Aug 25 16:51   2017 Aug 25 09:51:06    42.7840 0.00024 20.2584 329.3098    121.0654    15.59029    6.000
  28. 2017 Aug 24 16:51   2017 Aug 24 06:07:36    42.7847 0.00024 20.7154 322.7803    121.0654    15.59029    6.000
  29. 2017 Aug 23 16:51   2017 Aug 23 11:59:18    42.7851 0.00024 21.0145 318.1334    121.0654    15.59029    6.000
  30. 2017 Aug 22 16:51   2017 Aug 22 12:40:19    42.7846 0.00024 21.3989 314.2170    121.0654    15.59029    6.000
  31. 2017 Aug 21 16:51   2017 Aug 21 11:48:38    42.7849 0.00025 21.8086 310.6289    121.0654    15.59029    6.000
  32. 2017 Aug 20 16:51   2017 Aug 20 12:45:16    42.7844 0.00027 22.1886 313.0239    121.0654    15.59029    6.000
  33. 2017 Aug 19 16:51   2017 Aug 19 13:53:04    42.7839 0.00030 22.5656 308.9419    121.0654    15.59029    6.000
  34. 2017 Aug 18 16:51   2017 Aug 18 13:13:45    42.7839 0.00030 22.9721 302.1886    121.0654    15.59029    6.000
  35. 2017 Aug 17 16:51   2017 Aug 17 06:19:17    42.7836 0.00029 23.4815 297.6581    121.0654    15.59029    6.000
  36. 2017 Aug 16 16:51   2017 Aug 16 11:53:07    42.7839 0.00029 23.7855 293.6146    121.0654    15.59029    6.000
  37. 2017 Aug 15 16:51   2017 Aug 15 12:49:11    42.7839 0.00029 0.1657  288.6879    121.0654    15.59029    6.000
  38. 2017 Aug 14 16:51   2017 Aug 13 20:59:41    42.7849 0.00030 0.8219  288.8709    121.0654    15.59029    6.000
  39. 2017 Aug 13 16:51   2017 Aug 13 11:38:58    42.7854 0.00030 0.9760  287.1971    121.0654    15.59029    6.000
  40. 2017 Aug 12 16:51   2017 Aug 12 12:35:55    42.7856 0.00030 1.3560  282.8239    121.0654    15.59029    6.000
  41. 2017 Aug 11 16:51   2017 Aug 10 20:43:41    42.7849 0.00030 2.0131  277.3762    121.0654    15.59029    6.000
  42. 2017 Aug 10 16:51   2017 Aug 09 21:40:25    42.7849 0.00029 2.3931  273.5530    121.0654    15.59029    6.000
  43. 2017 Aug 09 16:51   2017 Aug 09 00:05:29    42.7847 0.00029 2.7488  272.2536    121.0654    15.59029    6.000
  44. 2017 Aug 08 16:51   2017 Aug 08 04:56:49    42.7847 0.00028 3.0645  265.5411    121.0654    15.59029    6.000
  45. 2017 Aug 07 16:51   2017 Aug 07 00:23:10    42.7843 0.00027 3.5353  262.4576    121.0654    15.59029    6.000
  46. 2017 Aug 06 16:51   2017 Aug 06 01:18:25    42.7843 0.00026 3.9158  255.1741    121.0654    15.59029    6.000
  47. 2017 Aug 05 16:51   2017 Aug 04 18:09:42    42.7838 0.00023 4.4290  256.4726    121.0654    15.59029    6.000
  48. 2017 Aug 04 16:51   2017 Aug 03 19:05:41    42.7842 0.00022 4.8091  254.9025    121.0654    15.59029    6.000
  49. 2017 Aug 03 16:51   2017 Aug 02 20:02:58    42.7846 0.00021 5.1890  250.2043    121.0654    15.59029    6.000
  50. 2017 Aug 02 16:51   2017 Aug 01 16:31:02    42.7843 0.00020 5.6427  246.5483    121.0654    15.59029    6.000
  51. 2017 Aug 01 16:51   2017 Jul 31 17:27:21    42.7843 0.00019 6.0229  241.2071    121.0654    15.59029    6.000
  52. 2017 Jul 31 16:51   2017 Jul 30 19:50:26    42.7843 0.00020 6.3792  236.0263    121.0654    15.59029    6.000
  53. 2017 Jul 30 16:51   2017 Jul 29 17:44:05    42.7842 0.00019 6.8096  232.5445    121.0654    15.59029    6.000
  54. 2017 Jul 29 16:51   2017 Jul 28 18:40:24    42.7839 0.00018 7.1898  227.9134    121.0654    15.59029    6.000
  55. 2017 Jul 28 16:51   2017 Jul 27 20:51:50    42.7840 0.00017 7.5493  226.5506    121.0654    15.59029    6.000
  56. 2017 Jul 27 16:51   2017 Jul 26 20:17:20    42.7838 0.00015 7.9544  222.1633    121.0654    15.59029    6.000
  57. 2017 Jul 26 16:51   2017 Jul 26 05:13:33    42.7838 0.00014 8.2028  220.6594    121.0654    15.59029    6.000
  58. 2017 Jul 25 16:51   2017 Jul 25 06:10:31    42.7837 0.00009 8.5827  216.3851    121.0654    15.59029    6.000
  59. 2017 Jul 24 16:51   2017 Jul 23 21:47:14    42.7830 0.00008 9.1164  197.3722    121.0654    15.59029    6.000
  60. 2017 Jul 23 16:51   2017 Jul 22 21:06:33    42.7825 0.00006 9.5233  197.0779    121.0654    15.59029    6.000
  61. 2017 Jul 22 16:51   2017 Jul 21 21:44:03    42.7824 0.00005 9.9085  206.8254    121.0654    15.59029    6.000
  62. 2017 Jul 21 16:51   2017 Jul 21 06:52:21    42.7828 0.00003 10.1535 205.6110    121.0654    15.59029    6.000
  63. 2017 Jul 20 16:51   2017 Jul 19 19:09:15    42.7830 0.00003 10.7423 189.8878    121.0654    15.59029    6.000
  64. 2017 Jul 18 16:51   2017 Jul 17 19:26:00    42.7838 0.00002 11.5290 230.1454    121.0654    15.59029    6.000
  65. 2017 Jul 18 05:18   2017 Jul 17 10:29:22    42.7835 0.00002 11.6764 233.9909    121.0654    15.59029    6.000
  66. 2017 Jul 17 16:51   2017 Jul 16 20:22:14    42.7828 0.00005 11.9090 9.5435  121.0654    15.59029    6.000
  67. 2017 Jul 16 16:51   2017 Jul 15 21:18:30    42.7829 0.00006 12.2892 5.8176  121.0654    15.59029    6.000
  68. 2017 Jul 15 16:53   2017 Jul 14 20:38:58    42.7833 0.00007 12.6957 5.8970  121.0654    15.59029    6.000
  69. 2017 Jul 14 16:51   2017 Jul 13 17:17:03    42.7830 0.00007 13.1467 357.5539    121.0654    15.59029    6.000
  70. 2017 Jul 13 16:51   2017 Jul 12 18:20:05    42.7826 0.00009 13.5252 0.2401  121.0654    15.59029    6.000
  71. 2017 Jul 12 16:52   2017 Jul 12 02:38:08    42.7825 0.00010 13.7840 358.1996    121.0654    15.59029    6.000
  72. 2017 Jul 11 16:51   2017 Jul 11 03:22:39    42.7824 0.00009 14.1674 352.0883    121.0654    15.59029    6.000
  73. 2017 Jul 10 16:51   2017 Jul 09 21:05:27    42.7824 0.00014 14.6665 353.3168    121.0654    15.59029    6.000
  74. 2017 Jul 09 16:51   2017 Jul 08 18:51:30    42.7830 0.00016 15.0989 347.1880    121.0654    15.59029    6.000
  75. 2017 Jul 08 16:51   2017 Jul 07 20:35:31    42.7832 0.00018 15.4657 344.6770    121.0654    15.59029    6.000
  76. 2017 Jul 07 16:51   2017 Jul 03 23:32:57    42.7835 0.00021 16.9994 323.1224    121.0654    15.59029    6.000
  77. 2017 Jul 06 16:51   2017 Jul 03 23:32:57    42.7835 0.00021 16.9994 323.1224    121.0654    15.59029    6.000
  78. 2017 Jul 05 16:51   2017 Jul 03 23:32:57    42.7835 0.00021 16.9994 323.1224    121.0654    15.59029    6.000
  79. 2017 Jul 04 16:51   2017 Jul 03 23:32:57    42.7835 0.00021 16.9994 323.1224    121.0654    15.59029    6.000
  80. 2017 Jul 03 16:51   2017 Jul 03 03:05:21    42.7838 0.00023 17.3366 323.8296    121.0654    15.59029    6.000
  81. 2017 Jul 02 16:51   2017 Jul 01 22:10:09    42.7840 0.00023 17.8132 321.3242    121.0654    15.59029    6.000
  82. 2017 Jul 01 16:51   2017 Jun 30 18:26:33    42.7836 0.00023 18.2702 313.9557    121.0654    15.59029    6.000
  83. 2017 Jun 30 16:51   2017 Jun 29 17:46:27    42.7821 0.00026 18.6769 315.6133    121.0654    15.59029    6.000
  84. 2017 Jun 29 16:51   2017 Jun 27 11:45:47    42.7835 0.00025 19.5672 299.5097    121.0654    15.59029    6.000
  85. 2017 Jun 28 16:51   2017 Jun 27 11:45:47    42.7835 0.00025 19.5672 299.5097    121.0654    15.59029    6.000
  86. 2017 Jun 27 16:51   2017 Jun 26 18:59:14    42.7839 0.00024 19.8432 275.7173    121.0654    15.59029    6.000
  87. 2017 Jun 26 16:51   2017 Jun 26 06:28:08    42.7841 0.00026 20.0496 300.8590    121.0654    15.59029    6.000
  88. 2017 Jun 25 16:51   2017 Jun 25 05:48:35    42.7844 0.00026 20.4560 299.1579    121.0654    15.59029    6.000
  89. 2017 Jun 24 16:51   2017 Jun 23 20:12:01    42.7846 0.00026 21.0100 294.6066    121.0654    15.59029    6.000
  90. 2017 Jun 23 16:51   2017 Jun 22 19:39:18    42.7847 0.00027 21.4146 288.7671    121.0654    15.59029    6.000
  91. 2017 Jun 22 16:51   2017 Jun 21 19:03:13    42.7862 0.00025 21.8201 276.0703    121.0654    15.59029    6.000
  92. 2017 Jun 21 16:51   2017 Jun 20 10:30:25    42.7826 0.00100 22.3568 7.1041  121.0654    15.59029    6.000
  93. 2017 Jun 20 16:51   2017 Jun 19 13:02:58    42.7831 0.00102 22.7119 1.6143  121.0654    15.59029    6.000
  94. 2017 Jun 19 16:51   2017 Jun 17 19:43:39    42.7783 0.00134 23.3954 351.8470    121.0654    15.59029    6.000
  95. 2017 Jun 18 16:51   2017 Jun 17 05:11:06    42.7804 0.00109 23.6359 331.2014    121.0654    15.59029    6.000
  96. 2017 Jun 17 16:51   2017 Jun 17 05:11:06    42.7804 0.00109 23.6359 331.2014    121.0654    15.59029    6.000
  97. 2017 Jun 16 16:51   2017 Jun 15 21:37:20    42.7815 0.00112 0.1591  322.5582    121.0654    15.59029    6.000
  98. 2017 Jun 15 16:51   2017 Jun 14 22:37:05    42.7836 0.00107 0.5402  314.7476    121.0654    15.59029    6.000
  99. 2017 Jun 14 16:52   2017 Jun 13 02:05:08    42.7835 0.00110 1.2776  304.8080    121.0654    15.59029    6.000
  100. 2017 Jun 13 16:55   2017 Jun 12 22:59:55    42.7799 0.00109 1.3293  302.8136    121.0654    15.59029    6.000
  101. 2017 Jun 12 16:53   2017 Jun 11 20:48:56    42.7838 0.00111 1.7626  296.9730    121.0654    15.59029    6.000
  102. 2017 Jun 11 16:59   2017 Jun 10 08:11:32    42.7841 0.00112 2.3694  287.0399    121.0654    15.59029    6.000
  103. 2017 Jun 10 16:52   2017 Jun 09 10:44:32    42.7841 0.00111 2.7246  282.9009    121.0654    15.59029    6.000
  104. 2017 Jun 09 16:51   2017 Jun 08 03:50:39    42.7841 0.00111 3.2364  274.7705    121.0654    15.59029    6.000
  105. 2017 Jun 08 16:51   2017 Jun 07 15:21:41    42.7836 0.00111 3.4432  271.5780    121.0654    15.59029    6.000
  106. 2017 Jun 07 16:53   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  107. 2017 Jun 06 16:52   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  108. 2017 Jun 05 16:56   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  109. 2017 Jun 04 16:53   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  110. 2017 Jun 03 16:52   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  111. 2017 Jun 02 16:52   2017 Jun 02 03:34:13    42.7826 0.00108 5.6268  236.6582    121.0654    15.59029    6.000
  112. 2017 Jun 01 16:51   2017 May 31 04:47:56    42.7827 0.00098 6.4012  223.1741    121.0654    15.59029    6.000
  113. 2017 May 31 16:55   2017 May 30 07:57:53    42.7827 0.00099 6.7465  217.2007    121.0654    15.59029    6.000
  114. 2017 May 30 16:52   2017 May 28 20:28:11    42.7801 0.00076 7.3336  201.4457    121.0654    15.59029    6.000
  115. 2017 May 29 16:51   2017 May 28 20:28:11    42.7801 0.00076 7.3336  201.4457    121.0654    15.59029    6.000
  116. 2017 May 28 16:51   2017 May 27 16:23:51    42.7819 0.00081 7.7990  196.2014    121.0654    15.59029    6.000
  117. 2017 May 27 16:51   2017 May 26 10:19:26    42.7815 0.00088 8.2975  186.8909    121.0654    15.59029    6.000
  118. 2017 May 26 16:51   2017 May 25 20:14:10    42.7813 0.00084 8.5308  182.0286    121.0654    15.59029    6.000
  119. 2017 May 26 07:51   2017 May 25 09:50:17    42.7813 0.00085 8.7031  178.9936    121.0654    15.59029    6.000
  120. 2017 May 25 16:51   2017 May 24 16:56:50    42.7811 0.00073 8.9826  172.3649    121.0654    15.59029    6.000
  121. 2017 May 24 16:51   2017 May 24 04:28:07    42.7802 0.00066 9.1889  165.6858    121.0654    15.59029    6.000
  122. 2017 May 23 16:51   2017 May 22 19:48:04    42.7809 0.00061 9.7300  153.0163    121.0654    15.59029    6.000
  123. 2017 May 22 16:51   2017 May 19 12:30:08    42.7817 0.00064 11.0443 131.4827    121.0654    15.59029    6.000
  124. 2017 May 21 16:51   2017 May 19 12:30:08    42.7817 0.00064 11.0443 131.4827    121.0654    15.59029    6.000
  125. 2017 May 20 16:51   2017 May 19 12:30:08    42.7817 0.00064 11.0443 131.4827    121.0654    15.59029    6.000
  126. 2017 May 19 16:51   2017 May 18 13:26:15    42.7805 0.00055 11.4259 119.5422    121.0654    15.59029    6.000
  127. 2017 May 18 16:51   2017 May 17 11:22:06    42.7811 0.00050 11.8575 105.2820    121.0654    15.59029    6.000
  128. 2017 May 17 16:51   2017 May 16 13:48:17    42.7797 0.00053 12.2151 107.5600    121.0654    15.59029    6.000
  129. 2017 May 16 16:51   2017 May 15 13:19:32    42.7788 0.00049 12.6204 94.7253 121.0654    15.59029    6.000
  130. 2017 May 15 16:51   2017 May 13 13:45:33    42.7815 0.00043 13.4078 73.9097 121.0654    15.59029    6.000
  131. 2017 May 14 16:51   2017 May 13 13:45:33    42.7815 0.00043 13.4078 73.9097 121.0654    15.59029    6.000
  132. 2017 May 13 16:51   2017 May 12 14:32:52    42.7822 0.00045 13.7919 63.8386 121.0654    15.59029    6.000
  133. 2017 May 12 16:51   2017 May 11 10:56:49    42.7825 0.00050 14.2489 49.9760 121.0654    15.59029    6.000
  134. 2017 May 11 16:51   2017 May 10 13:44:45    42.7829 0.00052 14.6001 43.0573 121.0654    15.59029    6.000
  135. 2017 May 10 16:51   2017 May 08 13:52:56    42.7829 0.00056 15.3929 27.5532 121.0654    15.59029    6.000
  136. 2017 May 09 16:51   2017 May 05 03:57:31    42.7895 0.00043 16.7519 73.1383 121.0654    15.59029    6.000
  137. 2017 May 08 16:51   2017 May 05 03:57:31    42.7895 0.00043 16.7519 73.1383 121.0654    15.59029    6.000
  138. 2017 May 07 16:51   2017 May 05 03:57:31    42.7895 0.00043 16.7519 73.1383 121.0654    15.59029    6.000
  139. 2017 May 06 16:51   2017 May 05 03:57:31    42.7895 0.00043 16.7519 73.1383 121.0654    15.59029    6.000
  140. 2017 May 05 16:51   2017 May 05 03:57:31    42.7895 0.00043 16.7519 73.1383 121.0654    15.59029    6.000
  141. 2017 May 04 16:51   2017 May 03 09:11:30    42.7771 0.00055 17.4587 19.1080 121.0654    15.59029    6.000
  142. 2017 May 03 16:51   2017 May 02 10:19:51    42.7838 0.00063 17.8367 346.9362    121.0654    15.59029    6.000
  143. 2017 May 02 16:51   2017 May 01 12:48:24    42.7838 0.00065 18.1931 339.6711    121.0654    15.59029    6.000
  144. 2017 May 01 16:51   2017 Apr 30 12:18:16    42.7832 0.00066 18.5987 333.4529    121.0654    15.59029    6.000
  145. 2017 Apr 30 16:51   2017 Apr 29 19:52:22    42.7817 0.00067 18.8715 334.6274    121.0654    15.59029    6.000
  146. 2017 Apr 29 16:51   2017 Apr 28 12:29:11    42.7832 0.00067 19.3906 320.7403    121.0654    15.59029    6.000
  147. 2017 Apr 28 16:51   2017 Apr 25 13:53:14    42.7842 0.00070 20.5597 305.6848    121.0654    15.59029    6.000
  148. 2017 Apr 26 16:51   2017 Apr 25 13:53:14    42.7842 0.00070 20.5597 305.6848    121.0654    15.59029    6.000
  149. 2017 Apr 25 16:51   2017 Apr 23 11:14:55    42.7851 0.00069 21.3982 293.9948    121.0654    15.59029    6.000
  150. 2017 Apr 24 16:51   2017 Apr 23 11:14:55    42.7851 0.00069 21.3982 293.9948    121.0654    15.59029    6.000
  151. 2017 Apr 23 16:51   2017 Apr 22 16:53:42    42.7851 0.00069 21.7023 288.5606    121.0654    15.59029    6.000
  152. 2017 Apr 22 16:51   2017 Apr 20 20:42:38    42.7906 0.00436 22.4416 180.6180    121.0654    15.59029    6.000"""
  153.  
  154. import numpy as np
  155. import matplotlib.pyplot as plt
  156.  
  157. bobs = bob.splitlines()
  158. lines = [x.split('\t') for x in bobs[::-1]]
  159. print set([len(x) for x in lines])
  160. data = [[float(x) for x in line[2:8]] for line in lines]
  161. data = np.array(zip(*data))
  162. data[2] *= 360./24  # convert to degrees
  163. print data.shape
  164.  
  165. names  = ('inclination (deg)', 'eccentricity', 'RA ascending (deg)',
  166.           'Arg peri (deg)') # , 'mean anom (deg)', 'mean motion (rev/day)'
  167. things = zip(names, data)
  168.  
  169. if True:
  170.     fig = plt.figure()
  171.     n = len(things)
  172.     for i, (name, x) in enumerate(things):
  173.         ax  = fig.add_subplot(n, 1, i+1)
  174.         # plt.subplot(n, 1, i+1)
  175.         ax.ticklabel_format(useOffset=False)
  176.         if 'deg' in name:
  177.             if 'inc' in name:
  178.                 ax.set_ylim(42.75, 42.85)
  179.             else:
  180.                 ax.set_ylim(0, 360)
  181.         if i+1 < n:
  182.             ax.xaxis.set_ticklabels([])
  183.         else:
  184.             ax.set_xlabel('days', fontsize=16)
  185.         plt.plot(x)
  186.         plt.title(name, fontsize=16)
  187.     plt.show()
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement