Skip to content
This repository has been archived by the owner on Oct 8, 2018. It is now read-only.

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
the-emerald committed Mar 3, 2017
1 parent 812cf26 commit 95c8077
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def plotUsers(): #Plot the most active users
plt.xlim([min(y_pos)-0.5, max(y_pos)+0.5])
plt.xticks(y_pos, users)
plt.ylabel('Messages')
plt.ylim
ax.grid(True)
plt.show()
quit()
Expand Down Expand Up @@ -113,9 +112,9 @@ def plotUsers(): #Plot the most active users
processedArray = []
with tqdm(leave=True,unit=' messages', total=lineNumber, desc="Processing - Stage 1") as counter:
for line in textfileArray:
timestamp, name, message = line.split(" - ")[:3] #lineSplitted[0] is timestamp, lineSplitted[1] is name, discard the rest
timestamp, name, message = line.split(" - ")[:3]
if args.search != "None":
processedArray.append([timestamp, name, message]) #lineSplitted[2] is the message.
processedArray.append([timestamp, name, message])
else:
processedArray.append([timestamp, name])
counter.update(1)
Expand Down

0 comments on commit 95c8077

Please sign in to comment.