In this recipe, we will learn to plot a line using Matplotlib that passes through specific x and y coordinates.
Matplotlib is a Python 2D plotting library that makes the complicated task of plotting lines, histograms, bar charts, and so on quite easy. This library not only plots, but also provides an API that enables the embedding of plots in applications too.