diff --git a/program.py b/program.py index 474c21c..4155e7b 100644 --- a/program.py +++ b/program.py @@ -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()