Mat Plot Lib
Mat Plot Lib
Using Matplotlib
Objectives
Objectives
• Discover how to use
Matplotlib?
• Explore the different types of
plots
Matplotlib
| What is Matplotlib?
Line Plot
| Line plots
- Used to show trends.
- Compare multiple values.
- Changes of values over time.
- Numerical data.
- Make predictions.
Line Plot
| Line plots
- linestyles
- linewidth
- color
- legend
Bar Plot
| Bar plots
- Normal and/or ordinal
categories.
- Compare data against different
categories.
- Use when greater than 3.
- Compare large data sets over
time.
Scatter Plot
| Scatter plots
- Visualize the relationship between
multiple numerical values.
- Visualize the correlation in a large
data set.
- Predict behavior based on the
measurement of the independent
variable.
Box Plot
| Box plots
- Show whisker plots.
- Displays statistical graph for sets
of numerical data.
- Shows the range, spread and
center.
- Used to compare data from
different categories.
Histograms
| Histograms
- Used for continuous data.
- Displays the frequency
distribution.
- Summarizes large data sets
graphically.
- Compare multiple distributions.