Learn practical skills, build real-world projects, and advance your career

Matplotlib

It is a multi-platform data visualisation library built on Numpy arrays.

It was originally written as a Python alternative for MATLAB users.

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

import warnings
warnings.filterwarnings("ignore")
plt.style.use("classic")
# http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html
np.linspace(0, 10, 5)
# generate 5 uniformly spaced values between (0,10)
array([ 0. ,  2.5,  5. ,  7.5, 10. ])
np.linspace(0, 10, 20)
array([ 0.        ,  0.52631579,  1.05263158,  1.57894737,  2.10526316,
        2.63157895,  3.15789474,  3.68421053,  4.21052632,  4.73684211,
        5.26315789,  5.78947368,  6.31578947,  6.84210526,  7.36842105,
        7.89473684,  8.42105263,  8.94736842,  9.47368421, 10.        ])