Add element in figure
This commit is contained in:
parent
e72120bd14
commit
30c13fa4c3
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user