Add a vertical line across the Axes.
官方文档
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.axvline.html
axvline
是 Matplotlib 中用于在图形中绘制垂直线的函数。它的常用参数及其含义如下:
plt.axvline(x=0, ymin=0, ymax=1, **kwargs)
参数解释
-
x
:
- 设置垂直线的位置,指定 x 轴上的坐标。默认值为
0
。
-
ymin