Matplotlib – Data Visualization

Matplotlib is a Python library used to create charts and visualizations.

📊 Widely used in data science and analytics.

Line Plot Example

import matplotlib.pyplot as plt

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

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

Bar Chart Example

import matplotlib.pyplot as plt

students = ['A', 'B', 'C']
marks = [70, 85, 90]

plt.bar(students, marks)
plt.show()
❌ Install matplotlib using pip before using it.