# matplotlib_course
Matplotlib Course for Beginners
- Welcome to the Matplotlib Course for Beginners 🎉
- This repository contains beginner-friendly examples of data visualization in Python using Matplotlib.
– Learn how to set axis labels, limits, and ticks.

– Create simple and grouped bar charts.

– Visualize data distribution and outliers.

– Display frequency distributions.

– Represent data in circular plots.

– Compare variables with scatter plots.

– Visualize stacked data over time.

– Create discrete plots with vertical lines.

– Create plots with stepwise data.

– Arrange multiple plots in a single figure.

– Export plots to image files (PNG, JPG, etc.).
import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [10, 8, 6, 4, 2] plt.plot(x, y, marker="o", color="red", label="Line Plot") plt.title("Save Figure Example") plt.xlabel("X-axis") plt.ylabel("Y-axis") plt.legend() plt.savefig("images/savefigure.png") # Save as PNG plt.savefig("images/savefigure.jpg") # Save as JPG plt.savefig("images/savefigure.pdf") # Save as PDF
plt.show()
Before running the code, install the following:
- pip install matplotlib numpy
- pip install notebook
-
Beginners in Python who want to learn data visualization
-
Students and aspiring data scientists
-
Anyone interested in making beautiful charts with Python

