Advertisement
Verenik_Alexei

Untitled

Jul 2nd, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.18 KB | None | 0 0
  1. plt.figure(figsize=(20, 20)) #задаём размер
  2.  
  3. plt.subplot(3, 1, 1)
  4. plt.plot(dau)
  5. plt.title('Ежедневная пользовательская активность', fontsize=20)
  6. plt.grid(axis = 'both')
  7. plt.ylabel('Количество пользователей', fontsize=14)
  8. plt.xlabel('Дата', fontsize=14)
  9. plt.xticks(np.arange(dau.index.min(), dau.index.max() + pd.to_timedelta('1 day'), pd.to_timedelta('1 day')),
  10.            rotation=90)
  11.            
  12.            
  13. plt.subplot(3, 1, 2)
  14. plt.plot(wau)
  15. plt.title('Активность по неделям', fontsize=20)
  16. plt.grid(axis = 'both')
  17. plt.ylabel('Количество пользователей', fontsize=14)
  18. plt.xlabel('Дата', fontsize=14)
  19. plt.xticks(np.arange(wau.index.min(), wau.index.max(), int(), rotation=90)
  20.            
  21.  
  22. plt.subplot(3, 1, 3)
  23. plt.plot(mau)
  24. plt.title('Активность по месяцам', fontsize=20)
  25. plt.grid(axis = 'both')
  26. plt.ylabel('Количество пользователей', fontsize=14)
  27. plt.xlabel('Дата', fontsize=14)
  28. plt.xticks(np.arange(mau.index.min(), mau.index.max(), int(), rotation=90)
  29.            
  30.  
  31. plt.tight_layout(pad=3.0)
  32.  
  33.  
  34. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement