Commit ffb38ec2 authored by Carlos GO's avatar Carlos GO
Browse files

parse script fully command line

parent 3c461bd0
...@@ -26,22 +26,25 @@ def maternal_plot(exps, feature='multi', mode='mutations'): ...@@ -26,22 +26,25 @@ def maternal_plot(exps, feature='multi', mode='mutations'):
def subfigs(exps, dim1, dim2, mode='mutations', feature='multi'): def subfigs(exps, dim1, dim2, mode='mutations', feature='multi'):
count = 1 count = 1
modes = ['mutations'] modes = ['mutations', 'generation']
features = ['multi', 'energy'] features = ['multi', 'energy', 'entropy']
for mode in modes: for mode in modes:
for feature in features: for feature in features:
plt.subplot(len(modes), len(features), count) plt.subplot(len(modes), len(features), count)
count += 1 count += 1
for e in exps: for e in exps:
df = pd.read_csv(f"Data/{e}_df_{mode}_mean.csv") df = pd.read_csv(f"Data/{e}_df_{mode}_mean.csv")
plt.plot(df[feature], label=f'{labels[e]}') if mode == 'generation':
plt.plot(df[feature][:1000], label=f'{labels[e]}')
else:
plt.plot(df[feature], label=f'{labels[e]}')
plt.ylabel(feature) plt.ylabel(feature)
plt.xlabel(mode) plt.xlabel(mode)
plt.legend() plt.legend()
plt.tight_layout() plt.tight_layout()
plt.show() plt.show()
if __name__ == "__main__": if __name__ == "__main__":
exps = ['orig', 'unp', 'nosel3', 'norm', 'beta01', 'lin2'] exps = [ 'beta01', 'unp', 'nosel3', 'norm', 'lin2']
# maternal_plot(exps, feature='entropy') # maternal_plot(exps, feature='entropy')
subfigs(exps, 2, 3) subfigs(exps, 2, 3)
pass pass
Supports Markdown
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