Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
RNANet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2021-06-16 15:31:00 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9195ee024d733b4b35eae31abecc1cfe3283d0a0
9195ee02
1 parent
7ec2c114
fixed summation of GMM curves
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
statistics.py
statistics.py
View file @
9195ee0
...
...
@@ -2060,7 +2060,7 @@ def GMM_histo(data_ori, name_data, toric=False, hist=True, couleur=None, save=Tr
plt
.
plot
(
newx
,
newy
,
c
=
colors
[
i
])
else
:
# store for later summation
courbes
.
append
(
n
ewy
)
courbes
.
append
(
n
p
.
array
(
newy
)
)
if
hist
:
plt
.
title
(
"Histogramme "
+
name_data
+
" avec GMM pour "
+
str
(
nb_components
)
+
" composantes ("
+
str
(
len
(
data_ori
))
+
" valeurs)"
)
...
...
@@ -2069,7 +2069,12 @@ def GMM_histo(data_ori, name_data, toric=False, hist=True, couleur=None, save=Tr
plt
.
close
()
else
:
# Plot their sum, do not save figure yet
plt
.
plot
(
newx
,
sum
(
courbes
),
c
=
couleur
,
label
=
name_data
)
try
:
plt
.
plot
(
newx
,
sum
(
courbes
),
c
=
couleur
,
label
=
name_data
)
except
TypeError
:
print
(
"N curves:"
,
len
(
courbes
))
for
c
in
courbes
:
print
(
c
)
plt
.
legend
()
# Save the json
...
...
Please
register
or
login
to post a comment