Add element in figure

This commit is contained in:
Mathieu Sanchez 2019-03-19 18:59:33 +09:00
parent e72120bd14
commit 30c13fa4c3

View File

@ -63,6 +63,8 @@ def display_fig(words, movie_name):
plt.title("Word frequencies in " + movie_name)
plt.ylabel("Number of Occurrences")
plt.xlabel("Words")
plt.bar(range(len(words)), list(words.values()), align='center')
plt.xticks(range(len(words)), list(words.keys()))
plt.show()