Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sns.boxplot(y="platform", x="year_of_release", data=since2012, orient="h")
- plt.title('Распределение суммарных продаж по платформам')
- plt.xlim(2012, 2016)
- plt.ylabel('Суммарные продажи')
- plt.xlabel('Год выпуска')
- formatter = matplotlib.ticker.StrMethodFormatter("{x:.0f}")
- plt.gca().xaxis.set_major_formatter(formatter)
- NameError Traceback (most recent call last)
- <ipython-input-111-0a10dddf523d> in <module>
- 4 plt.ylabel('Суммарные продажи')
- 5 plt.xlabel('Год выпуска')
- ----> 6 formatter = matplotlib.ticker.StrMethodFormatter("{x:.0f}")
- 7 plt.gca().xaxis.set_major_formatter(formatter)
- NameError: name 'matplotlib' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement