fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # Data
  4. categories = ['Fully Adopted', 'Partially Adopted', 'Not Adopted']
  5. counts = [151, 5, 50] # Replace with the actual counts
  6.  
  7. # Create bar graph
  8. plt.figure(figsize=(10, 6))
  9. plt.bar(categories, counts, color=['skyblue', 'lightgreen', 'salmon'])
  10.  
  11. # Add labels and title
  12. plt.xlabel('Adoption Status')
  13. plt.ylabel('Number of Countries')
  14. plt.title('Country Adoption Status')
  15.  
  16. # Show plot
  17. plt.show()
  18.  
Success #stdin #stdout 2.76s 57000KB
stdin
Standard input is empty
stdout
Standard output is empty