Created
December 18, 2019 10:58
-
-
Save bKNN/1b2aaf8e7e28dd664cdddaafc03ae969 to your computer and use it in GitHub Desktop.
DATAVIZ - Ressources type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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