Matplotlib 如何增加饼图的大小

Matplotlib 如何增加饼图的大小,matplotlib,Matplotlib,sales2=sales.groupby(['State'])[['Sales2016']].sum() 使用figsize: sales2graph = sales2.plot(kind='pie', labels=sales2['Sales2016'], colors=['r', 'g', 'b'], autopct='%1.0f%%', # to get percentage and round off appro

sales2=sales.groupby(['State'])[['Sales2016']].sum()


使用
figsize

sales2graph = sales2.plot(kind='pie', 
            labels=sales2['Sales2016'], 
            colors=['r', 'g', 'b'],
            autopct='%1.0f%%', # to get percentage and round off appropriately
            fontsize=10, 
            subplots='true',
            figsize=(10,8))

使用
figsize
参数。
sales2graph = sales2.plot(kind='pie', 
            labels=sales2['Sales2016'], 
            colors=['r', 'g', 'b'],
            autopct='%1.0f%%', # to get percentage and round off appropriately
            fontsize=10, 
            subplots='true',
            figsize=(10,8))