3. Matplotlib#
Matplotlib is a Python module that allows you to create visualizations. Until now, you have probably used Excel to make graphs, but Python offers much more versatility. In this section, you will learn how to use matplotlib to make good-looking graphs.
From the matplotlib library we will discuss the following functions:
plt.subplot()plt.plot()plt.title()plt.suptitle()plt.xlabel()andplt.ylabel()plt.xlim()andplt.ylim()plt.legend()plt.grid()plt.show()
In addition to matplotlib, we will often import Numpy (and occasionally Pandas) to help us with the numerical computations.