📊 Day 64 of My Data Analytics Journey!

— Learning Matplotlib (All Charts Explained!)

Today, I worked with Matplotlib, the most fundamental Python library for data visualization.
It allows you to turn raw data into meaningful graphs that help in understanding patterns, trends, and insights….


This content originally appeared on DEV Community and was authored by Ramya .C

— Learning Matplotlib (All Charts Explained!)

Today, I worked with Matplotlib, the most fundamental Python library for data visualization.
It allows you to turn raw data into meaningful graphs that help in understanding patterns, trends, and insights.

🔥 What I Learned — Matplotlib Chart Types

Below are the essential chart types every Data Analyst should know:

1️⃣ Line Chart

Used to show trends over time.
Use case: Monthly sales trend.

import matplotlib.pyplot as plt

x = [1,2,3,4,5]
y = [10, 20, 15, 25, 30]

plt.plot(x, y)
plt.title("Line Chart")
plt.xlabel("Months")
plt.ylabel("Sales")
plt.show()

2️⃣ Bar Chart

Used to compare categories.

categories = ["A", "B", "C"]
values = [20, 35, 30]

plt.bar(categories, values)
plt.title("Bar Chart")
plt.show()

3️⃣ Histogram

Shows the distribution of data.

data = [22,25,29,21,28,30,27,26,32,24]

plt.hist(data, bins=5)
plt.title("Histogram")
plt.show()

4️⃣ Scatter Plot

Used to find the relationship between two variables.

x = [1,2,3,4,5]
y = [5,20,15,25,30]

plt.scatter(x, y)
plt.title("Scatter Plot")
plt.show()

5️⃣ Pie Chart

Used to show parts of a whole.

sizes = [30,25,20,25]
labels = ["A","B","C","D"]

plt.pie(sizes, labels=labels, autopct="%1.1f%%")
plt.title("Pie Chart")
plt.show()

6️⃣ Box Plot

Helps identify data spread and outliers.

data = [22,25,29,21,28,30,27,26,32,24]

plt.boxplot(data)
plt.title("Box Plot")
plt.show()

7️⃣ Area Chart

Shows cumulative progress.

x = [1,2,3,4,5]
y = [3,8,2,10,5]

plt.fill_between(x, y)
plt.title("Area Chart")
plt.show()

8️⃣ Heatmap (Using seaborn for better visuals)

Helps show patterns between variables.

import seaborn as sns
import numpy as np

data = np.random.rand(5,5)
sns.heatmap(data, annot=True)
plt.title("Heatmap")
plt.show()

✨ Additional Things I Practiced

  • Customized chart colors and styles
  • Adjusted figure sizes
  • Added labels, legends, and titles
  • Created multiple plots using subplot()
  • Saved charts as images

These visualizations help communicate insights clearly — a must-have skill for Data Analysts.

🚀 Consistency is my strength. Day 64 completed.

RamyaAnalyticsJourney

🔗 GitHub Link:

https://github.com/ramyacse21/matplotlib_python/blob/main/practice%20matplotlib%20pie%20chart.py
https://github.com/ramyacse21/matplotlib_python/blob/main/practice%20matplotlib.py


This content originally appeared on DEV Community and was authored by Ramya .C


Print Share Comment Cite Upload Translate Updates
APA

Ramya .C | Sciencx (2025-11-16T08:20:31+00:00) 📊 Day 64 of My Data Analytics Journey!. Retrieved from https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/

MLA
" » 📊 Day 64 of My Data Analytics Journey!." Ramya .C | Sciencx - Sunday November 16, 2025, https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/
HARVARD
Ramya .C | Sciencx Sunday November 16, 2025 » 📊 Day 64 of My Data Analytics Journey!., viewed ,<https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/>
VANCOUVER
Ramya .C | Sciencx - » 📊 Day 64 of My Data Analytics Journey!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/
CHICAGO
" » 📊 Day 64 of My Data Analytics Journey!." Ramya .C | Sciencx - Accessed . https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/
IEEE
" » 📊 Day 64 of My Data Analytics Journey!." Ramya .C | Sciencx [Online]. Available: https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/. [Accessed: ]
rf:citation
» 📊 Day 64 of My Data Analytics Journey! | Ramya .C | Sciencx | https://www.scien.cx/2025/11/16/%f0%9f%93%8a-day-64-of-my-data-analytics-journey/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.