1import numpy as np
2import matplotlib.pyplot as plt
3
4fig = plt.figure()
5ax = fig.add_subplot(111)
6
7N = 5
8ind = np.arange(N)
9width = 0.5
10vals = [1,2,3,4,5]
11colors = ['r','b','b','b','b']
12ax.barh(ind, vals, width, color=colors)
13
14plt.show()