Answers for "horizontal bar using matplotlib"

2

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()
Posted by: Guest on June-13-2020

Code answers related to "horizontal bar using matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language