Commit 8418f35a authored by Marcel Henrik Schubert's avatar Marcel Henrik Schubert
Browse files

fixed savedir error

parent 373c275d
......@@ -785,7 +785,7 @@ def plotter(subsets, subana, phases, labels):
df = pd.DataFrame(tmp , index = ind)
f,ax = plt.subplots(figsize=(18, len(ind)/6))
sns.heatmap(df, fmt= '.1f',ax=ax, center = 0, yticklabels = True)
f.savefig('../Data/results/featureplots/features_heat_{}_{}_{}_phases.png'.format(st, an, label))
f.savefig(savedir+'featureplots/features_heat_{}_{}_{}_phases.png'.format(st, an, label))
elif label == 'author':
sex_key = []
......@@ -842,7 +842,7 @@ def plotter(subsets, subana, phases, labels):
df = pd.DataFrame(tmp, index = ind)
f,ax = plt.subplots(figsize=(18, len(ind_pos+ind_neg)/6))
sns.heatmap(df, fmt= '.1f',ax=ax, center = 0, yticklabels = True)
f.savefig('../Data/results/featureplots/features_heat_{}_{}_{}_phases.png'.format(st, an, label))
f.savefig(savedir+'featureplots/features_heat_{}_{}_{}_phases.png'.format(st, an, label))
dic = {}
ind_pos = []
......@@ -886,7 +886,7 @@ def plotter(subsets, subana, phases, labels):
df = pd.DataFrame(tmp, index = ind)
f,ax = plt.subplots(figsize=(18, len(ind_pos+ind_neg)/6))
sns.heatmap(df, fmt= '.1f',ax=ax, center = 0, yticklabels = True)
f.savefig('../Data/results/featureplots/features_heat_{}_{}_{}_gender_phases.png'.format(st, an, label))
f.savefig(savedir+'featureplots/features_heat_{}_{}_{}_gender_phases.png'.format(st, an, label))
return 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment