Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DetectorWriteSim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EWMSCP
DetectorWriteSim
Commits
dd8aca5a
Commit
dd8aca5a
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
new plot
parent
a2fc93fe
No related branches found
No related tags found
1 merge request
!4
Python driver and data analysis part
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
simrunner/data_config.json
+54
-0
54 additions, 0 deletions
simrunner/data_config.json
visualizer/visualizer/SeabornPlotter.py
+23
-7
23 additions, 7 deletions
visualizer/visualizer/SeabornPlotter.py
with
77 additions
and
7 deletions
simrunner/data_config.json
+
54
−
0
View file @
dd8aca5a
...
@@ -64,5 +64,59 @@
...
@@ -64,5 +64,59 @@
"-n"
:
"100"
,
"-n"
:
"100"
,
"-s"
:
"12M"
,
"-s"
:
"12M"
,
"-i"
:
"0.1s"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_12"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"600"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_13"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"1200"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_14"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"2400"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_15"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"4800"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_16"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"9600"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_17"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"60000"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_18"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"120000"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_19"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"240000"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_20"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"480000"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
}
"-N"
:
"4"
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
visualizer/visualizer/SeabornPlotter.py
+
23
−
7
View file @
dd8aca5a
import
numpy
as
np
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
import
seaborn
as
sns
import
seaborn
as
sns
import
pandas
as
pd
from
scipy.stats
import
iqr
from
scipy.stats
import
iqr
sns
.
set_theme
()
class
SeabornPlotter
:
class
SeabornPlotter
:
...
@@ -10,19 +12,26 @@ class SeabornPlotter:
...
@@ -10,19 +12,26 @@ class SeabornPlotter:
self
.
name
=
name
self
.
name
=
name
self
.
current_plot
=
None
self
.
current_plot
=
None
def
configure_plot
(
self
,
ax
):
#ax.set_xscale('log')
if
self
.
name
==
"
idle
"
or
self
.
name
==
"
wait
"
:
ax
.
set_yscale
(
'
symlog
'
,
linthresh
=
0.1
)
else
:
ax
.
set_yscale
(
'
log
'
)
def
plot
(
self
):
def
plot
(
self
):
df
=
self
.
dataframe
df
=
self
.
dataframe
x
=
df
[
'
size
'
]
x
=
df
[
'
size
'
]
y
=
df
[
'
duration
'
]
y
=
df
[
'
duration
'
]
title
=
"
Procedure: {}
"
.
format
(
self
.
name
)
title
=
"
Procedure: {}
"
.
format
(
self
.
name
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
16
,
9
))
f
,
ax
=
plt
.
subplots
(
figsize
=
(
32
,
18
))
sns
.
violinplot
(
x
=
x
,
y
=
y
,
s
=
5
,
color
=
"
.15
"
,
palette
=
"
light:b
"
,
cut
=
0
,
inner
=
"
points
"
,
sns
.
boxplot
(
x
=
x
,
y
=
y
,
color
=
"
.15
"
,
palette
=
"
light:b
"
)
hue
=
list
(
self
.
dataframe
.
index
.
get_level_values
(
0
)))
if
self
.
name
==
"
dump
"
or
self
.
name
==
"
write
"
or
self
.
name
==
"
open
"
or
self
.
name
==
"
wait
"
:
self
.
configure_plot
(
ax
)
ax
.
set_yscale
(
'
symlog
'
,
linthresh
=
0.1
)
else
:
ax
.
set_yscale
(
'
log
'
)
plt
.
title
(
title
)
plt
.
title
(
title
)
plt
.
xlabel
(
"
Size of written data in ms
"
)
plt
.
xlabel
(
"
Size of written data in ms
"
)
...
@@ -31,3 +40,10 @@ class SeabornPlotter:
...
@@ -31,3 +40,10 @@ class SeabornPlotter:
plt
.
show
()
plt
.
show
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment