Skip to content

sonu3223/matplotlib_course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

image # 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.

Topics Covered

Axis Functions

– Learn how to set axis labels, limits, and ticks. image

Bar Plot

– Create simple and grouped bar charts. image

Box Plot

– Visualize data distribution and outliers. image

Fill Between Plot

– Show area between curves. image

Histogram Plot

– Display frequency distributions. image

Linear Plot

– Draw simple line plots. image

Pie Chart

– Represent data in circular plots. image

Scatter Plot

– Compare variables with scatter plots. image

Stack Plot

– Visualize stacked data over time. image

Stem Plot

– Create discrete plots with vertical lines. image

Step Plot

– Create plots with stepwise data. image

Subplots

– Arrange multiple plots in a single figure. image

Save 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()

Requirements

Before running the code, install the following:

  • pip install matplotlib numpy
  • pip install notebook

Who is this course for?

  • Beginners in Python who want to learn data visualization

  • Students and aspiring data scientists

  • Anyone interested in making beautiful charts with Python

About

Matplotlib Course for Beginners

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published