Bar Charts in Python & Matplotlib Tutorial - Grouped Bar Plots, Horizontal Bars and Stacked Bar Plot

preview_player
Показать описание
Learn all you need to know about Python and Matplotlib's Bar Graphs, including grouped bar charts, stacked bar charts, customizing bar colors, adding titles and axis labels.

Sample Dataframe:
{
'Year': [2016, 2017, 2018, 2019, 2020, 2021],
'Men': [300, 320, 310, 305, 325, 330],
'Women': [350, 325, 300, 305, 380, 355],
'Total': [650,645, 610, 610, 705, 685]
}
)

0:00 Introduction
0:53 Loading out dataframe
1:36 Simple Matplotlib Bar Graphs
2:30 Adding Title and Labels to Matplotlib Bar Graphs
3:59 Changing Matplotlib Bar Graph Colors
4:25 Changing Bar Colours Conditionally
7:09 Matplotlib Horizontal bar charts
8:00 Matplotlib Bar Charts widths
9:10 Grouped Bar Charts in Matplotlib
11:55 Adding Legends to Matplotlib Bar Charts
13:18 Stacked Matplotlib Bar Charts
14:42 Proportional Stacked Bar Charts in Matplotlib
16:18 Styling Bar Charts in Matplotlib
17:37 Conclusion

Learn Python programming the right way!

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

✅ Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

Hello datagy, I went through many channels for this topic and I could say you're the best.

studyonline
Автор

WOW you really deserve WAAAAY more exposure. Straight and simple.

jahn-paulgreyling
Автор

I just discovered your channel and think you really deserve a much larger following. Very well explained and you clearly know you stuff, I am adding you to my Top 3 !

bob-pqef
Автор

The best content and teaching style ever . You have clarified it so nicely and simply. Awesome Nik !

gvvlogsriderunrefresh
Автор

I am new to matplotlib and this video helped a lot with my very first project. Thank you datagy for making programming less scary! :) One question though, how can I rotate the text on the x axis?

TheDinnyextra
Автор

Hi, was wondering, how do you increase the graph size as i have a relatively large categories of horizontal bars, tried using '"figsize" but doesnt work :(

limzijian