Donut Chart In Python Matplotlib

preview_player
Показать описание

'Data Analytics Project For Resume' - .... * will be uploaded soon * ....
-------------------------------------------------------------

!! Donut Chart - Python Matplotlib !!

Donut chart is a modified Pie chart, with an area from center cut out.

Step 1) First, drawing a pie plot, using Matplotlib library
The data is taken from the variable 'A' .... labels are given as 'Churned' & 'Not Churned' ...
... color is given to each label 'orange' & 'lime' ... startangle means the angle for slicing, set as 50 ...
... shadow is True means it will drop some shadow of the chart ... radius of the circle is set as 2 ...
... explode is used to cut the slice out of the figure ...
... autopct is used to show the % on the chart upto required decimal points ...
... pctdistance is given for distance of % from the center

Step 2) Second, using plt.Circle...we will create a circle and save it in the variable name 'circle' ...
... putting (0,0) by default ... 1 is radius of circle ... and color of circle is white ...

Step 3) Third, we will add the 'circle' at the center of pie chart ... using gca().add_artist()

------------------------------------------
-------------------------------------------
------------------------------------------
🇮🇳 DATA SCIENCE LOVERS 🧡💛💚

-------------------------------------------

You must check our projects videos :

--------------------------------------------

#python #matplotlib #donut
Рекомендации по теме
Комментарии
Автор

Please add more videos about visualisation in Python.Also, please make a video about the resume project.

freelance
welcome to shbcf.ru