📜  如何在条形图中绘制阈值线python代码示例

📅  最后修改于: 2022-03-11 14:45:42.826000             🧑  作者: Mango

代码示例1
# for horizontal line
plt.axhline(y=threshold,linewidth=1, color='k')
# for vertical line
plt.axvline(x=threshold,linewidth=1, color='k')

# Another example - You can also define xmin and xmax
plt.axhline(y=5, xmin=0.5, xmax=3.5)