Answers for "how to draw threshold line in bar graph python"

0

how to draw threshold line in bar graph 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)
Posted by: Guest on August-05-2021

Code answers related to "how to draw threshold line in bar graph python"

Python Answers by Framework

Browse Popular Code Answers by Language