This commit is contained in:
Patrice Matz 2018-11-18 09:29:29 +01:00
parent d1af517c93
commit 1e699baef4
1 changed files with 5 additions and 7 deletions

View File

@ -1,11 +1,7 @@
import matplotlib.pyplot as plt
import plotly.plotly as py
filePath = "./test.docx"
def main():
#print(getTxt(filePath))
filename = "test.txt"
allWords = {}
counter = 0
@ -20,6 +16,7 @@ def main():
allWords[word].append(counter)
counter+=1
# x,y,z for ribbon Plot
wordArray = [] #x
indexes = [] #y
counts = [] #z
@ -31,9 +28,10 @@ def main():
counts.append(tmpArray)
indexes.append(allWords[word])
wordArray.append(word)
plt.plot(allWords[word], tmpArray)
wordArray.append(word)
plt.legend(wordArray)
plt.show()