Matplotlib
Matplotlib is one of the essential libraries of data visualization in Python. It is an excellent two-dimensional and three-dimensional graphics library for generating scientific figures.
Some of the major pros of Matplotlib are as follows:
- Generally easy to get started with simple plots
- Support for custom labels and text
- Great control of every element in a figure
- High-quality output in many formats
- Very customizable in general
We will start with simple data generated by the NumPy library:
import matplotlib.pyplot as plt import numpy as np a = np.linspace(1,10,15) a array([ 1. , 1.64285714, 2.28571429, 2.92857143, 3.57142857, 4.21428571, 4.85714286, 5.5 , 6.14285714, 6.78571429, ...