Created
October 10, 2012 13:00
-
-
Save language-engineering/3865507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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