From 6b29d4791e3759363f6285060af9bec6644c8f97 Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Fri, 8 May 2020 09:29:35 +0200 Subject: [PATCH] wip --- its.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/its.py b/its.py index f46d876..2f3807c 100644 --- a/its.py +++ b/its.py @@ -139,11 +139,11 @@ def main(folder, intervl): else: va = "top" plt.text(difftime(intervals[i][0]), data[i], ("n=" if i == 0 else "") + str(len(datasingle[i])), ha="center", va=va) - plt.plot([difftime(intervals[i][0]) for i in range(len(datasingle)) for j in datasingle[i]], its2ols, label="sm single ITS (pvalues " + str(p2) + ")") + plt.plot([difftime(intervals[i][0]) for i in range(len(datasingle)) for j in datasingle[i]], its2ols, label="sm single ITS") # print("shape: " + str(np.shape(thresdata))) for (ti, t) in enumerate(thresholds): # print("shape1: " + str(np.shape(thresdata[ti]))) - plt.plot([difftime(thresiv[ti][i][0]) for i in range(len(thresdata[ti])) for j in thresdata[ti][i]], thresols[ti], label="thres ITS " + str(t) + " months (pvalues " + str(thresp[ti]) + ")") + plt.plot([difftime(thresiv[ti][i][0]) for i in range(len(thresdata[ti])) for j in thresdata[ti][i]], thresols[ti], label="thres ITS " + str(t) + " months") plt.title("Average sentiments for new users") plt.xticks(rotation=90) plt.xlabel("months")