fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # Data
  4. labels = ['Python', 'Java', 'C++', 'JavaScript']
  5. sizes = [35, 25, 20, 20]
  6. colors = ['gold', 'lightcoral', 'lightskyblue', 'lightgreen']
  7.  
  8. # Plot Pie Chart
  9. plt.pie(sizes, labels=labels, colors=colors, autopct='%1.1f%%', startangle=140)
  10.  
  11. # Title
  12. plt.title("Programming Language Usage")
  13.  
  14. # Display chart
  15. plt.show()
Success #stdin #stdout #stderr 3.48s 69784KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Fontconfig error: No writable cache directories