Matplotlib is a Python library used for visualizing data. It is an extensive library and sub-modules like pyplot provides functionality equivalent to Matlab. Let's start by understanding few basic components :- Figure : Figure is the top level window or container that everything is drawn upon. Axes : Axes is the area on which we plot the data and will have associated labels and ticks. import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt fig = plt.fig() ax = plt.axes() plt.show() Above code will create a new container (figure) and add an axes. We use the call plt.show() to visualize the plot. If you notice, it will be an empty bounding box with ticks (this empty box is axes). A figure can have multple axes. Axes can have 2 (X-Axis and Y-Axis) or 3 Axis objects. (3 in case of 3D) Axis : Axis is a number line object which takes care of graph limits and generating the ticks. A typical plot will start with a figure, then axes will be adde