## Matplotlib Tutorial 6 – Pie Chart

This matplotlib tutorial shows how to plot pie chart. For home expenses, I’ll plot individual expense items as a pie and will show how you can use different properties such as autopct, explode, radius, shadow etc to create beautiful looking pie charts

Topics that are covered in this Video:
0:00 Introduction
0:55 Plot a pie chart
1:32 plt.axis()
2:01 Increse redius of chart
2:32 Autopct argument to show percentage
3:44 Explode argument
4:55 startangle argument

Next Video:
Matplotlib Tutorial 7 – Save Chart To a File Using savefig: https://www.youtube.com/watch?v=XLJHkCn48lM&list=PLeo1K3hjS3uu4Lr8_kro2AqaO6CFYgKOl&index=7

Populor Playlist:

Website: http://codebasicshub.com/

Source

### Comment List

• codebasics
January 4, 2021

Very Good Explanation!!
Had a small query, can we create dynamic pie charts and export them to excel using matplotlib ?

• codebasics
January 4, 2021

Far better …explanation

• codebasics
January 4, 2021

Contents aren't visible.

• codebasics
January 4, 2021

you did it again sir! what I like about your tutorial is you explain it in the VERY BASIC WAY! Where us beginners can fully understand them keep it that way sir =) a lot of people here on youtube try to search things cause at first they don't know how to do stuffs, just like me π THANK YOU SO MUCH! YOU'RE MY NUMBER ONE YOUTUBER THAT I RELY ON EVERYTIME I WANT TO DO STUFFS IN PYTHON. GOD BLESS YOU

• codebasics
January 4, 2021

I'm trying to find a tutorial on matplotlib and visualizing results and here you are again!

YOU'RE THE NUMBER 1 YOUTUBER I ALWAYS RELY ON , ESPECIALLY IN THIS KIND OF MATTER LIKE IN PYTHON, MACHINE LEARNING AND VISUALIZATION HAAH THANK YOU π

• codebasics
January 4, 2021

Pls…code on github can't be loaded..something wrong !!!

• codebasics
January 4, 2021

not so good

• codebasics
January 4, 2021

Good explanation. I tried all and it worked. π

• codebasics
January 4, 2021

Good

• codebasics
January 4, 2021

great work bro the tutorials are really awesome

• codebasics
January 4, 2021

I am facing an error "str object not callable". While adding the axis("equal") line. Can you help me with this?

• codebasics
January 4, 2021

Hi π Is it possible to put values instead of percentages in the pie chart ?

• codebasics
January 4, 2021

need a video on "Kernel Density Estimation Plots"

• codebasics
January 4, 2021

A Seaborn series would be nice!

• codebasics
January 4, 2021

Great:)