Untitled
unknown
plain_text
a year ago
420 B
4
Indexable
import matplotlib.pyplot as plt # Revenue composition data labels = ['Advertising', 'Cloud', 'Other'] revenues = [144.8, 14.48, 21.72] # in billions # Create pie chart plt.figure(figsize=(8, 8)) plt.pie(revenues, labels=labels, autopct='%1.1f%%', startangle=140) plt.title('Company XYZ Revenue Composition in 2020') plt.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle plt.show()
Editor is loading...
Leave a Comment