answered 11 years ago
You can do the bar graph using pyplot from matplotlib as follows:
pyplot
matplotlib
import matplotlib.pyplot as plt categories=[1,2,3,4] frequencies=[5,2,6,10] plt.figure() plt.bar(categories,frequencies,width=1) plt.savefig('tmp.png')