| 收費 | 數字 | 分享 |
|---|---|---|
| 0-20%。 | 9. | 15.50% |
| 21-40%。 | 18. | 31%。 |
| 41-60%。 | 4. | 6.90% |
| 61-80%。 | 9. | 15.50% |
| 81-100% | 8. | 13.80% |
| >100% | 10. | 17.30% |
uj5u.com熱心網友回復:
您可以使用pie()函式 frompyplot在 python 中繪制餅圖。首先你需要安裝matplotlib:
pip install matplotlib
然后,您可以通過提供大小和標簽來創建餅圖:
import matplotlib.pyplot as plt
labels = 'Charging', 'Number', 'Share'
sizes = [20, 9, 15.5]
fig1, ax1 = plt.subplots()
ax1.pie(sizes, labels=labels, startangle=90)
ax1.axis('equal')
plt.show()
餅圖檔案:pyplot-pie
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/406739.html
標籤:
