mirror of
https://github.com/Estom/notes.git
synced 2026-02-13 07:16:13 +08:00
matplotlib & pandas
This commit is contained in:
28
Python/matplotlab/gallery/pyplots/pyplot_simple.md
Normal file
28
Python/matplotlab/gallery/pyplots/pyplot_simple.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Pyplot 简单图(Simple)
|
||||
|
||||
A most simple plot, where a list of numbers is plotted against their index.
|
||||
|
||||
```python
|
||||
import matplotlib.pyplot as plt
|
||||
plt.plot([1,2,3,4])
|
||||
plt.ylabel('some numbers')
|
||||
plt.show()
|
||||
```
|
||||
|
||||

|
||||
|
||||
## 参考
|
||||
|
||||
此示例显示了以下函数、方法、类和模块的使用:
|
||||
|
||||
```python
|
||||
import matplotlib
|
||||
matplotlib.pyplot.plot
|
||||
matplotlib.pyplot.ylabel
|
||||
matplotlib.pyplot.show
|
||||
```
|
||||
|
||||
## 下载这个示例
|
||||
|
||||
- [下载python源码: pyplot_simple.py](https://matplotlib.org/_downloads/pyplot_simple.py)
|
||||
- [下载Jupyter notebook: pyplot_simple.ipynb](https://matplotlib.org/_downloads/pyplot_simple.ipynb)
|
||||
Reference in New Issue
Block a user