cara menggambar garis ambang batas dalam grafik batang python

# 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)
Darkstar