Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
be77083a
Commit
be77083a
authored
Jul 10, 2011
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of vo20.nl:/home/git/repos/uva
parents
9de14f3d
ccee273c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
modsim/ass4_taddeus/vibstring/plot_compare.py
modsim/ass4_taddeus/vibstring/plot_compare.py
+36
-0
modsim/ass4_taddeus/vibstring/report/compare.pdf
modsim/ass4_taddeus/vibstring/report/compare.pdf
+0
-0
No files found.
modsim/ass4_taddeus/vibstring/plot_compare.py
0 → 100755
View file @
be77083a
#!/usr/bin/env python
from
sys
import
argv
from
pylab
import
plot
,
xlabel
,
ylabel
,
show
,
savefig
,
ylim
,
legend
# Collect data
x
=
[]
seq
=
[]
par
=
[]
lines
=
open
(
'compare.txt'
).
readlines
()[
1
:]
for
i
in
range
(
len
(
lines
))[::
3
]:
n
=
int
(
lines
[
i
][:
-
1
])
s
=
float
(
lines
[
i
+
1
][:
-
1
])
p
=
float
(
lines
[
i
+
2
][:
-
1
])
# Use the minimum of all measurements
if
len
(
x
)
and
x
[
-
1
]
==
n
:
if
seq
[
-
1
]
>
s
:
seq
[
-
1
]
=
s
if
par
[
-
1
]
>
p
:
par
[
-
1
]
=
p
else
:
x
.
append
(
n
)
seq
.
append
(
s
)
par
.
append
(
p
)
# Plot and optionally save data
plot
(
x
,
seq
,
'o-'
,
label
=
'Sequentieel'
)
plot
(
x
,
par
,
'o-'
,
label
=
'Parallel (9 nodes)'
)
ylim
(
ymin
=
0
)
legend
()
xlabel
(
'Aantal afstandsstappen'
)
ylabel
(
'Tijd (s)'
)
if
len
(
argv
)
>
1
:
savefig
(
argv
[
1
])
show
()
modsim/ass4_taddeus/vibstring/report/compare.pdf
0 → 100644
View file @
be77083a
File added
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