Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.87 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2.  
  3. years = list(range(2001, 2018))
  4.  
  5. usa = [
  6.         3_497_964,
  7.         4_009_603,
  8.         4_086_706,
  9.         5_307_130,
  10.         5_349_498,
  11.         6_117_990,
  12.         5_775_858,
  13.         5_201_765,
  14.         4_034_999,
  15.         4_958_272,
  16.         6_389_314,
  17.         6_931_749,
  18.         7_059_987,
  19.         7_780_518,
  20.         9_083_198,
  21.         8_727_221,
  22.         9_661_120,
  23. ]
  24.  
  25. russia = [
  26.         941_182,
  27.         957_521,
  28.         1_134_160,
  29.         1_390_250,
  30.         1_701_387,
  31.         2_254_176,
  32.         2_584_577,
  33.         2_971_967,
  34.         2_095_626,
  35.         2_547_245,
  36.         2_936_394,
  37.         3_184_548,
  38.         3_472_146,
  39.         3_193_523,
  40.         1_977_749,
  41.         1_882_490,
  42.         2_184_855,
  43. ]
  44.  
  45. plt.plot(years, usa, label='USA')
  46. plt.plot(years, russia, label='RUSSIA')
  47.  
  48. plt.legend()
  49. plt.grid()
  50. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement