Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to plotting horizontal bar on matplotlib

import matplotlib.pyplot as plt 

data = [5., 25., 50., 20.]
plt.barh(range(len(data)), data)
plt.show()
 
PREVIOUS NEXT
Tagged: #plotting #horizontal #bar #matplotlib
ADD COMMENT
Topic
Name
4+8 =