Matplotlib Install
# Matplotlib Installation
Matplotlib is a powerful Python plotting library used to create various types of static, dynamic, and interactive charts.
In this chapter, we will use the pip tool to install the Matplotlib library. If you haven't installed this tool yet, you can refer to (#).
Upgrade pip:
python3 -m pip install -U pip
Install the matplotlib library:
python3 -m pip install -U matplotlib
After installation, we can import the matplotlib library using the import statement:
import matplotlib
In the following example, we import the matplotlib library and then check its version number:
## Example
import matplotlib
print(matplotlib.__version__)
Executing the above code produces the following output:
3.4.2
YouTip