Matplotlib is a Python library used for plotting the beautiful and attractive Graphs.
In data science, visualization is the important step. By using visualization we can easily understand than how data is split.
Matplotlib library is used to make different types of graphs like bar graph, histogram, scatter graph etc. It helps to study the complex data and gives the data a visual view.
Now it’s time to see how to install matplotlib library in python.
- Open command prompt
- Write the following syntax:-
pip install matplotlib
In this way we can install matplotlib library and use it easily. We can easily import it in python and do whatever we want with that library.
This is all about importing matplotlib library in python.