Advertisement
Dodma

Untitled

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