Dup Goto 📝

PieChart_001

PT2/lang/python/matplotlib 05-17 21:18:55
To Pop
11 lines, 27 words, 213 chars Saturday 2025-05-17 21:18:55
from matplotlib import pyplot as plt

labels = [ "Alice", "Bob", "Charlie", "Dave" ]
values = [ 1, 2, 3, 4 ]

plt.pie(values,labels=labels,autopct='%1.f%%')
plt.show()