mirror of
https://github.com/Estom/notes.git
synced 2026-11-28 15:15:27 +08:00
matplotlib & pandas
This commit is contained in:
23
Python/matplotlab/gallery/axisartist/simple_axisline3.md
Normal file
23
Python/matplotlab/gallery/axisartist/simple_axisline3.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 简单的轴线3
|
||||
|
||||

|
||||
|
||||
```python
|
||||
import matplotlib.pyplot as plt
|
||||
from mpl_toolkits.axisartist.axislines import Subplot
|
||||
|
||||
fig = plt.figure(1, (3, 3))
|
||||
|
||||
ax = Subplot(fig, 111)
|
||||
fig.add_subplot(ax)
|
||||
|
||||
ax.axis["right"].set_visible(False)
|
||||
ax.axis["top"].set_visible(False)
|
||||
|
||||
plt.show()
|
||||
```
|
||||
|
||||
## 下载这个示例
|
||||
|
||||
- [下载python源码: simple_axisline3.py](https://matplotlib.org/_downloads/simple_axisline3.py)
|
||||
- [下载Jupyter notebook: simple_axisline3.ipynb](https://matplotlib.org/_downloads/simple_axisline3.ipynb)
|
||||
Reference in New Issue
Block a user