Matplotlib is a Python library used to create charts and graphs.

Import Matplotlib Before we start working with Matplotlib, we need to import it into computing environment:

from matplotlib import pyplot as plt

It allows us to reference any library procedure as plt.<procName>. It also provides access to existing set of graphing/plotting procedures.