This commit is contained in:
wea_ondara
2020-01-28 11:33:50 +01:00
parent c2695e0d49
commit 03c86683fb
7 changed files with 47 additions and 23 deletions

View File

@@ -59,8 +59,8 @@ def g(srcfile, outputdir, intervals):
plt.ylabel("pvalue")
plt.legend(loc="upper right")
plt.savefig(outputdir + "/ks_averagesentiments_pval.png", bbox_inches='tight')
plt.close(fig)
fig = plt.figure(figsize=(16, 12))
for i in range(len(single)):
plt.plot([iv[0] for iv in intervals], [s if isinstance(s, float) else s.statistic for s in single[i]], label=str(i + 1) + " posts - most posters")