vault backup: 2023-05-13 12:10:20

This commit is contained in:
2023-05-13 12:10:20 +08:00
parent 36143a48c5
commit a8a80c8f3c
2 changed files with 26 additions and 9 deletions

View File

@@ -51,4 +51,9 @@ ax.annotate(
shrink=0.05), #
)
```
官方說明:[matplotlib.axes.Axes.annotate — Matplotlib 3.7.1](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.annotate.html)
官方說明:[matplotlib.axes.Axes.annotate — Matplotlib 3.7.1](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.annotate.html)
## 在X軸上畫一個範圍
```python
plt.gca().axvspan(startXPos, endXPos, alpha=0.2, color='red')
```