Untitled

From Cream Macaw, 10 Months ago, written in Plain Text, viewed 167 times.
URL http://codebin.org/view/5fd24cbf Embed
Download Paste or View Raw
  1. fig, (ax0,ax1,ax2) = plt.subplots(nrows=1,ncols=3,figsize=(20,20))
  2.  
  3. plt.rc('font', size= 15 )
  4.  
  5. fig. suptitle('Обзор жанров в регионах')
  6.  
  7. genre_na.plot(kind='pie',y='na_sales', legend=False, autopct='%.0f%%',title='Северная Америка',ax=ax0)
  8. ax0.set(ylabel='')
  9.  
  10. genre_eu.plot(kind='pie',y='eu_sales',legend=False, autopct='%.0f%%', title='Европа',ax=ax1)
  11. ax1.set(ylabel='')
  12.  
  13. genre_jp.plot(kind='pie',y='jp_sales',legend=False, autopct='%.0f%%', title='Япония',ax=ax2)
  14. ax2.set(ylabel='')
  15.  
  16. plt.show()

Reply to "Untitled"

Here you can reply to the paste above