Skip to content

Commit

Permalink
Pie Chart simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
linrakesh committed Jul 17, 2019
1 parent 8b82ae3 commit b53d657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matplotlib/pie_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import matplotlib.pyplot as plt
import numpy as np
x = ['Delhi','Banglore','Chennai','Pune']
y = [250,300,260,400]
plt.pie(y,labels= x)
x = ['Delhi','Banglore','Chennai','Pune','Ghaziabad','Udupi']
y = [250,300,260,400,599,320]
plt.pie(y,labels=x,autopct='%1.2f',startangle=90,explode=(0,0.1,0,0,0.2,0))
plt.show()

0 comments on commit b53d657

Please sign in to comment.