from bokeh.plotting import *
output_file('foo.html')
inds = [str(x) for x in [2, 5, 6, 8, 9]]
colors = ['red', 'orange', 'blue', 'green', '#4488aa']
rect(inds, inds, 1.0, 1.0, color=colors, x_range=inds, y_range=inds)
show()
Plot topics with bokeh or matplotlib