DEV Community

Aditi Sharma
Aditi Sharma

Posted on

🚀 Day 13 of My Python Learning Journey

Data Visualization with Matplotlib & Seaborn

Today I entered the world of data visualization using two powerful Python libraries — Matplotlib & Seaborn 🎨📊

🔹 Matplotlib

The backbone of Python visualization.

import matplotlib.pyplot as plt

x = [1,2,3,4]
y = [2,4,6,8]

plt.plot(x, y)
plt.show()

✅ Supports: Line, Bar, Scatter, Histogram, Pie, Stack plots

🔹 Seaborn

Built on Matplotlib but more beautiful & statistical.

import seaborn as sns
import pandas as pd

df = pd.DataFrame({"x":[1,2,3,4], "y":[2,4,6,8]})
sns.scatterplot(x="x", y="y", data=df)

✅ Supports: Heatmaps, Pairplots, Boxplots, Violin plots, Distribution plots

âš¡ Fun Facts
• Mathplotlib is the OG of Python plotting (created in 2003 🎉).
• Seaborn makes plots aesthetic & easier to interpret.
• Visualization is key in Data Analytics & Machine Learning to spot patterns quickly.

✨ Reflection
Visuals make data stories come alive. Excited to dive deeper into statistical plots and dashboards next! 🚀

Python #Matplotlib #Seaborn #100DaysOfCode #DataAnalytics #DevCommunity

Top comments (0)