Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #draw #threshold #line #bar #graph #python
ADD COMMENT
Topic
Name
8+3 =