Skip to content

Instantly share code, notes, and snippets.

@bKNN
Created December 18, 2019 11:01
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/5cec6ac534933d33cae29e4dbe311809 to your computer and use it in GitHub Desktop.
Save bKNN/5cec6ac534933d33cae29e4dbe311809 to your computer and use it in GitHub Desktop.
DATAVIZ - status code
import matplotlib.pyplot as plt
labels = '404', '200', '301'
sizes = [6, 891, 885]
explode = (0, 0.1, 0)
fig1, ax1 = plt.subplots()
ax1.pie(sizes, explode=explode, labels=labels, autopct='%1.1f%%',
shadow=True, startangle=180, colors=('pink','lightgreen','lightblue'))
ax1.axis('equal')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment