plot horizontal bar chart matplotlib code example
Example 1: 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()
Example 2: horizontal bar plot python
import seaborn as sns
sns.barplot(data=df, orient = 'h')