FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Intresting-Python-Programs/Draw a Pie Chart.py at sudo · sudoshivesh/Intresting-Python-Programs · GitHub
sudoshivesh
/
Intresting-Python-Programs
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Intresting-Python-Programs
/
Draw a Pie Chart.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
7 lines (7 loc) · 268 Bytes
Breadcrumbs
Intresting-Python-Programs
/
Draw a Pie Chart.py
Copy path
File metadata and controls
7 lines (7 loc) · 268 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
import
matplotlib
.
pyplot
as
plt
Partition
=
'Holidays'
,
'Eating_Out'
,
'Shopping'
,
'Groceries'
sizes
=
[
250
,
100
,
300
,
200
]
fig1
,
ax1
=
plt
.
subplots
()
ax1
.
pie
(
sizes
,
labels
=
Partition
,
autopct
=
'%1.1f%%'
,
shadow
=
True
,
startangle
=
90
)
ax1
.
axis
(
'equal'
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL