- fig, (ax0,ax1,ax2) = plt.subplots(nrows=1,ncols=3,figsize=(20,20))
- plt.rc('font', size= 15 )
- fig. suptitle('Обзор жанров в регионах')
- genre_na.plot(kind='pie',y='na_sales', legend=False, autopct='%.0f%%',title='Северная Америка',ax=ax0)
- ax0.set(ylabel='')
- genre_eu.plot(kind='pie',y='eu_sales',legend=False, autopct='%.0f%%', title='Европа',ax=ax1)
- ax1.set(ylabel='')
- genre_jp.plot(kind='pie',y='jp_sales',legend=False, autopct='%.0f%%', title='Япония',ax=ax2)
- ax2.set(ylabel='')
- plt.show()