Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pie chart labeling

import matplotlib.pyplot as plt
labels = 'Cricket', 'Football', 'Hockey', 'F1'
sizes = [15, 30, 45, 10]
 
fig1, ax1 = plt.subplots()
ax1.pie(sizes, labels=labels)
ax1.axis('equal')  
plt.show()
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #pie #chart #labeling
ADD COMMENT
Topic
Name
7+9 =