Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 25, 2020 11:37
Show Gist options
  • Save computer-tutor/cc062888ab06d65fbec602c23b995cb6 to your computer and use it in GitHub Desktop.
Save computer-tutor/cc062888ab06d65fbec602c23b995cb6 to your computer and use it in GitHub Desktop.
import pandas as pd
import matplotlib.pyplot as plt
labels=['North', 'South', 'East','West','Central']
sizes =[140, 160,140,180,110]
colors=['gold','yellowgreen','lightcoral','lightskyblue','pink']
explode=(0.1,0,0,0,0)
plt.pie(sizes,explode=explode,
labels=labels,colors=colors,shadow=True, startangle=140, autopct='%1.1f%%')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment