Skip to content

Instantly share code, notes, and snippets.

@bKNN
Created December 18, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bKNN/1b2aaf8e7e28dd664cdddaafc03ae969 to your computer and use it in GitHub Desktop.
Save bKNN/1b2aaf8e7e28dd664cdddaafc03ae969 to your computer and use it in GitHub Desktop.
DATAVIZ - Ressources type
import matplotlib.pyplot as plt
labels = 'HTML', 'CSS', 'JS', 'Images','Autres'
sizes = [9, 13, 31, 48, 17]
explode = (0, 0, 0, 0, 0)
fig1, ax1 = plt.subplots()
ax1.pie(sizes, explode=explode, labels=labels, autopct='%1.1f%%',
shadow=True, startangle=180, colors=('pink','lightgreen','lightblue','lightgrey','purple'))
ax1.axis('equal')
plt.title("Nombre de requêtes par types de ressources")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment