[go: up one dir, main page]

0% found this document useful (0 votes)
3 views2 pages

Mat Plot Lib

Data visualization is the graphical representation of information using elements like charts and graphs to reveal trends and patterns. Matplotlib is a Python library for creating 2D plots and graphs, featuring a module called pyplot for easy plotting and supporting various graph types. It includes bar plots, scatter plots, line plots, histograms, pie charts, and more, making it a versatile tool for data analysis and visualization.

Uploaded by

c4379649
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Mat Plot Lib

Data visualization is the graphical representation of information using elements like charts and graphs to reveal trends and patterns. Matplotlib is a Python library for creating 2D plots and graphs, featuring a module called pyplot for easy plotting and supporting various graph types. It includes bar plots, scatter plots, line plots, histograms, pie charts, and more, making it a versatile tool for data analysis and visualization.

Uploaded by

c4379649
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Matplotlib

What is data visualization ?


➢ Data visualization is the graphical representation of information and data.
➢ Visual elements like charts, graphs, and maps, data visualization tools provide an accessible
way to see and understand trends, outliers, and patterns in data.

What is Matplotlib?
Matplotlib is a python library used to create 2D graphs and plots by using python scripts. It has a
module named pyplot which makes things easy for plotting by providing feature to control line
styles, font properties, formatting axes etc. It supports a very wide variety of graphs and plots
namely - histogram, bar charts, power spectra, error charts etc. It is used along with NumPy to
provide an environment that is an effective open source alternative for MatLab. It can also be
used with graphics toolkits like PyQt and wxPython.
It was introduced by John D. Hunter in 2002.

Matplotlib Graphs
Plots (graphics), also known as charts, are a visual representation of data in the form of colored (mostly)
graphics. It tells its audience the story about the data relationship through data points, lines, symbols,
labels, and numbers so that professionals and anyone with limited knowledge of reading data can get a
fair idea of what the data is trying to show. We can use the Matplotlib visualization library in Python to
portray the graphs.

1. Bar Plot
https://www.w3schools.com/python/matplotlib_bars.asp
A bar graph, a graphical representation of data, employs rectangles to emphasize specific
categories. The length and height of the bars depict the dataset distribution. One axis
represents a category, while the other represents values or counts. Bar plot in
Python, commonly used for this purpose, enable visualizing data either vertically or
horizontally. The vertical version is often termed a column chart. When organized from high
to low counts, these bar charts are referred to as Pareto charts, providing a clear insight into
the significance of different categories.

2. Scatter Plot
Scatter plots are a powerful tool in a data scientist’s arsenal, allowing us to visualize the
relationship between two variables. This blog will explore the ins and outs of creating
stunning scatter Plot Visualization in Python using matplotlib. Scatter plots are invaluable
for uncovering patterns, trends, and correlations within datasets, making them an
essential component of exploratory data analysis.
https://www.w3schools.com/python/matplotlib_scatter.asp

3. Line Plot
https://www.w3schools.com/python/matplotlib_line.asp
Line Plot is one of the easiest and most basic graphical analysis techniques that play an
important role in data analysis when working on machine learning or data science projects.
They are used to express a relationship between two variables. The article focuses on
plotting a line chart in Python using Matplotlib.

4. Histogram Plot
A histogram is used to represent data provided in the form of some groups. It is an accurate
method for the graphical representation of numerical data distribution. It is a type of bar plot
where the X-axis represents the bin ranges while the Y-axis gives information about
frequency.
https://www.w3schools.com/python/matplotlib_histograms.asp

5. Pie Plot
A Pie Chart is a circular statistical plot that can display only one series of data. The area of the
chart is the total percentage of the given data. Pie charts are commonly used in business
presentations like sales, operations, survey results, resources, etc. as they provide a quick
summary. In this article, let’s understand how to create pie chart in python with pie diagram.
https://www.w3schools.com/python/matplotlib_pie_charts.asp

6. Stem Plot
Stem plots plot vertical lines at each x-axis location from the baseline to the y-axis,
and place a marker there. They are similar to scatter plots because there are no
links between individual data points.
https://python-charts.com/ranking/stem-plot-matplotlib/

7. Box Plot
https://www.tutorialspoint.com/matplotlib/matplotlib_box_plot.htm

8. Area Plot
An area chart is a type of data visualization that displays quantitative data over
time or categories. It is similar to a line chart, but the area between the line and
the x-axis is filled with color, visually representing the data’s magnitude. Area
charts are commonly used to show multiple variables’ cumulative totals
or compare the proportions of different categories.
https://www.geeksforgeeks.org/filled-area-chart-using-plotly-in-python/

9. Step Plot
https://www.geeksforgeeks.org/matplotlib-pyplot-step-function-in-python/

10. Sub Plot


https://www.w3schools.com/python/matplotlib_subplot.asp
Matplotlib subplots are a grid of smaller axes, with each axis being a plot that is plotted
together within a single figure. The subplots() function returns a Figure object and an Axes
object.

You might also like