まぬねこの足跡。。。

備忘録+たのしさ+ひっそりと

円グラフ

x = [80, 50, 30, 20, 10]
labels = ['A', 'B', 'C', 'D', 'E']

# 画像サイズ
plt.figure(figsize=(6,6))

### 画像描画
# autopct='%.1f%%':割合を数値表示
# startangle=90:90度から描画を始める
# textprops={'fontsize':12}:文字サイズ
# counterclock=False:時計周り
plt.pie(x,labels=labels, autopct='%.1f%%', counterclock=False, startangle=90, textprops={'fontsize':12});

# 画像タイトル
plt.title('オリジナル',fontsize=18)

plt.show()