MENU

Fun & Interesting

Create Time Series Animations in Python with Matplotlib! (Bar Chart Race)

Keith Galli 10,831 5 months ago
Video Not Working? Fix It Now

Learn how to create fun animated bar chart races in Python using matplotlib! This tutorial walks through building population trend visualizations from scratch, covering data processing, basic plotting, animation techniques, and styling improvements. Perfect for anyone interested in data visualization who wants to recreate those engaging animated charts you've seen online. We'll turn static data into dynamic visualizations using just Python and matplotlib. Link to Code: https://github.com/KeithGalli/time-series-animations Link to Dataset: https://population.un.org/wpp/Download/Standard/MostUsed/ Video Timeline! 0:00 - Video Overview 1:01 - Step 0.) Find a Dataset to Use (link in description) 1:43 - Step 1.) Initial Data Processing/Cleaning 5:17 - Step 2.) Plot Static Bar Chart using Matplotlib 8:27 - Step 3.) Create animation using Matplotlib FuncAnimation & Save it as mp4 video 15:39 - Step 4.) Improve Formatting & Styles #python #matplotlib #datavisualization ------------------------- Follow me on social media! Instagram | https://www.instagram.com/keithgalli/ Twitter | https://twitter.com/keithgalli TikTok | https://tiktok.com/@keithgalli ------------------------- Learn data skills with hands-on exercises & tutorials at Datacamp! https://datacamp.pxf.io/c/3588040/1012793/13294 Practice your Python Pandas data science skills with problems on StrataScratch! https://stratascratch.com/?via=keith Join the Python Army to get access to perks! YouTube - https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join Patreon - https://www.patreon.com/keithgalli *I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

Comment