learn-python/contrib/plotting-visualization/matplotlib-installation.md

32 wiersze
808 B
Markdown

# Matplotlib Installation
Matplotlib is a widely used Python library for creating static, animated, and interactive visualizations. It can be installed using `pip`, Python's package manager.
## Prerequisites
Before installing Matplotlib, ensure you have Python installed on your system. You can download and install Python from the [official Python website](https://www.python.org/).
## Installation Steps
1. **Install Matplotlib**: Open your terminal or command prompt and run the following command to install Matplotlib using `pip`:
```bash
pip install matplotlib
```
2. **Verify Installation**: After installation, you can verify if Matplotlib is installed correctly by importing it in a Python environment:
```python
import matplotlib
print(matplotlib.__version__)
```
Output:
```
3.4.3
```