mirror of
https://github.com/Estom/notes.git
synced 2026-02-06 12:04:05 +08:00
23 lines
606 B
Markdown
23 lines
606 B
Markdown
# 简单的轴线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) |