kopia lustrzana https://github.com/animator/learn-python
Merge pull request #119 from adarsh1001111/matplotlib_installation
Added matplotlib_installation.md file and updated the index.mdpull/157/head
commit
b385c50924
|
@ -1,3 +1,3 @@
|
||||||
# List of sections
|
# List of sections
|
||||||
|
|
||||||
- [Section title](filename.md)
|
- [Installing Matplotlib](matplotlib_installation.md)
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
# 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
|
||||||
|
```
|
Ładowanie…
Reference in New Issue