SHARE
TWEET

Untitled

a guest Jan 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     import numpy as np
  2.     import matplotlib.pyplot as plt
  3.  
  4.     data = ((2970, 110.6/10.1, 'Saturn V'),
  5.             (773,  50.5/5.4,   'Ariane 5 ES'),
  6.             (549,  70./3.7,    'Falcon 9 FT'),
  7.             (283,  62.5/5.0,   'Delta IV medium'),
  8.             (12.5, 17./1.2,    'Electron'),
  9.             (2.6,  14.5/0.44,  'Black Brandt 10'))
  10.     data1 = [x for x in data if not 'Falcon' in x[2]]
  11.  
  12.  
  13.     if True:
  14.         fig = plt.figure()
  15.         ax  = fig.add_subplot(1, 1, 1)
  16.         for (x, y, name) in data:
  17.             if any([n in name for n in ('Brandt', 'Falcon')]):
  18.                 ax.plot(x, y, 'or', markersize=10)
  19.             else:
  20.                 ax.plot(x, y, 'ok', markersize=10)
  21.         ax.text(445, 20.8, 'F9', fontsize=16)
  22.         ax.text( 1.9,    35, 'BB 10', fontsize=16)
  23.         ax.set_xscale('log')
  24.         x0, x1 = ax.get_xlim()
  25.         ax.plot([x0, x1], [9, 9], '-k')
  26.         ax.plot([x0, x1], [15, 15], '-k')
  27.         ax.set_ylabel('height/diameter', fontsize=18)
  28.         ax.set_xlabel('mass (metric tons)', fontsize=18)
  29.         ax.set_ylim(0, 40)
  30.         plt.setp(ax.get_xticklabels(), fontsize=14)
  31.         plt.setp(ax.get_yticklabels(), fontsize=14)
  32.        
  33.         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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top