Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plt.figure(figsize=(20, 20)) #задаём размер
- plt.subplot(3, 1, 1)
- plt.plot(dau)
- plt.title('Ежедневная пользовательская активность', fontsize=20)
- plt.grid(axis = 'both')
- plt.ylabel('Количество пользователей', fontsize=14)
- plt.xlabel('Дата', fontsize=14)
- plt.xticks(np.arange(dau.index.min(), dau.index.max() + pd.to_timedelta('1 day'), pd.to_timedelta('1 day')),
- rotation=90)
- plt.subplot(3, 1, 2)
- plt.plot(wau)
- plt.title('Активность по неделям', fontsize=20)
- plt.grid(axis = 'both')
- plt.ylabel('Количество пользователей', fontsize=14)
- plt.xlabel('Дата', fontsize=14)
- plt.xticks(np.arange(wau.index.min(), wau.index.max(), int(), rotation=90)
- plt.subplot(3, 1, 3)
- plt.plot(mau)
- plt.title('Активность по месяцам', fontsize=20)
- plt.grid(axis = 'both')
- plt.ylabel('Количество пользователей', fontsize=14)
- plt.xlabel('Дата', fontsize=14)
- plt.xticks(np.arange(mau.index.min(), mau.index.max(), int(), rotation=90)
- plt.tight_layout(pad=3.0)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement