Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Created October 10, 2012 13:00
Show Gist options
  • Select an option

  • Save language-engineering/3865507 to your computer and use it in GitHub Desktop.

Select an option

Save language-engineering/3865507 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
#put your results here!
results = [67, 54, 44, 33]
ind = np.arange(len(results))
width = 0.4
p1 = plt.bar(ind, results, width, color="#1AADA4") #plot a bar graph
plt.ylabel('Accuracy') #y axis label
plt.ylim(ymax=100)
#x axis labelling
plt.xticks(ind+width/2.0, ('dvd', 'elec', 'book', 'kitchen'))
plt.title('DVD classifier')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment