Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2. import matplotlib.pyplot as plot
  3.  
  4. #mtn
  5. count_mtn_list = getCount('mtn')#returns list of mtn numbers
  6. #utl
  7. count_utl_list = getCount('utl')#returns list of utl numbers
  8. #warid
  9. count_warid_list = getCount('warid')#returns list of warid numbers
  10.  
  11. #x values
  12. dates_list = getDatesList('')#it doesn't matter which network here
  13. x = range(len(dates_list))
  14.  
  15. fig = plot.figure()
  16. ax1 = fig.add_subplot(211)
  17. ax1.plot(x, count_mtn_list, color='red')
  18.  
  19. ax2 = fig.add_subplot(212)
  20. ax2.plot(x, count_utl_list, color='blue')
  21.  
  22. ax3 = fig.add_subplot(213)
  23. ax3.plot(x, count_warid_list, color='green')
  24.  
  25. filename = "/home/oquidave/work/scripts/mt_revenue.png"
  26. plot.savefig(filename)
  27. plot.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement