Matplotlib > Horizontal bar plot (basic)

Name
Code
Output
x = [1,2,3,4]
y = [1,2,1,5]
matplotlib.pyplot.barh(x,y)
matplotlib.pyplot.show()

       
           Horizontal bar plot (basic)