Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
AS1 Activity Recognition
Commits
8b44ca2b
Commit
8b44ca2b
authored
Mar 25, 2020
by
pandersson
Browse files
Visualization improvements
parent
8ccbc33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/data_visualization.py
View file @
8b44ca2b
...
...
@@ -43,18 +43,27 @@ def main():
cumulative_all_nbr_measurements
=
np
.
cumsum
(
all_nbr_measurements
)
plt
.
figure
(
figsize
=
(
24
,
9
))
plt
.
suptitle
(
visualization
+
' data visualization'
)
plt
.
subplot
(
3
11
)
plt
.
subplot
(
4
11
)
plt
.
plot
(
data_x
)
for
nbr
in
cumulative_all_nbr_measurements
:
plt
.
axvline
(
nbr
,
color
=
'r'
)
plt
.
subplot
(
312
)
plt
.
ylabel
(
'x'
)
plt
.
subplot
(
412
)
plt
.
plot
(
data_y
)
for
nbr
in
cumulative_all_nbr_measurements
:
plt
.
axvline
(
nbr
,
color
=
'r'
)
plt
.
subplot
(
313
)
plt
.
ylabel
(
'y'
)
plt
.
subplot
(
413
)
plt
.
plot
(
data_z
)
for
nbr
in
cumulative_all_nbr_measurements
:
plt
.
axvline
(
nbr
,
color
=
'r'
)
plt
.
ylabel
(
'z'
)
plt
.
subplot
(
414
)
data_mean
=
(
np
.
asarray
(
data_x
)
+
np
.
asarray
(
data_y
)
+
np
.
asarray
(
data_z
))
/
3.0
plt
.
plot
(
data_mean
)
for
nbr
in
cumulative_all_nbr_measurements
:
plt
.
axvline
(
nbr
,
color
=
'r'
)
plt
.
ylabel
(
'mean'
)
plt
.
show
()
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
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