Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Charlotte Volk
mateRNAl
Commits
ffb38ec2
Commit
ffb38ec2
authored
Jun 10, 2018
by
Carlos GO
Browse files
parse script fully command line
parent
3c461bd0
Changes
1
Show whitespace changes
Inline
Side-by-side
plot.py
View file @
ffb38ec2
...
...
@@ -26,14 +26,17 @@ def maternal_plot(exps, feature='multi', mode='mutations'):
def
subfigs
(
exps
,
dim1
,
dim2
,
mode
=
'mutations'
,
feature
=
'multi'
):
count
=
1
modes
=
[
'mutations'
]
features
=
[
'multi'
,
'energy'
]
modes
=
[
'mutations'
,
'generation'
]
features
=
[
'multi'
,
'energy'
,
'entropy'
]
for
mode
in
modes
:
for
feature
in
features
:
plt
.
subplot
(
len
(
modes
),
len
(
features
),
count
)
count
+=
1
for
e
in
exps
:
df
=
pd
.
read_csv
(
f
"Data/
{
e
}
_df_
{
mode
}
_mean.csv"
)
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
.
xlabel
(
mode
)
...
...
@@ -41,7 +44,7 @@ def subfigs(exps, dim1, dim2, mode='mutations', feature='multi'):
plt
.
tight_layout
()
plt
.
show
()
if
__name__
==
"__main__"
:
exps
=
[
'orig
'
,
'unp'
,
'nosel3'
,
'norm'
,
'beta01'
,
'lin2'
]
exps
=
[
'beta01
'
,
'unp'
,
'nosel3'
,
'norm'
,
'lin2'
]
# maternal_plot(exps, feature='entropy')
subfigs
(
exps
,
2
,
3
)
pass
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment