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
26b830eb
Commit
26b830eb
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
new plot for Longevent in not final
parent
55af464b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!4
Python driver and data analysis part
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
visualizer/visualizer/DataFrameCreator.py
+5
-0
5 additions, 0 deletions
visualizer/visualizer/DataFrameCreator.py
visualizer/visualizer/SeabornPlotter.py
+5
-5
5 additions, 5 deletions
visualizer/visualizer/SeabornPlotter.py
with
10 additions
and
5 deletions
visualizer/visualizer/DataFrameCreator.py
+
5
−
0
View file @
26b830eb
...
...
@@ -45,6 +45,11 @@ class DataFrameCreator:
dataframe_name
=
os
.
path
.
splitext
(
filename
)[
0
]
dataframe_type
=
dataframe_name
.
split
(
'
-
'
)[
1
]
dataframe
=
pd
.
read_csv
(
file_path
,
delimiter
=
"
"
,
header
=
0
)
# Berechnung der Zeitdifferenz in Sekunden ab dem ersten Wert
if
not
dataframe
.
empty
:
dataframe
[
'
start
'
]
=
pd
.
to_datetime
(
dataframe
[
'
start
'
],
unit
=
'
s
'
)
start_time
=
dataframe
[
'
start
'
].
iloc
[
0
]
dataframe
[
'
seconds_since_start
'
]
=
(
dataframe
[
'
start
'
]
-
start_time
).
dt
.
total_seconds
()
if
dataframe_type
in
self
.
l_dfs
:
inner_dict
=
self
.
l_dfs
[
dataframe_type
]
...
...
This diff is collapsed.
Click to expand it.
visualizer/visualizer/SeabornPlotter.py
+
5
−
5
View file @
26b830eb
...
...
@@ -53,14 +53,14 @@ class SeabornPlotter:
def
plot_histogram_long
(
self
):
df
=
self
.
dataframe
x
=
df
[
'
start
'
]
x
=
df
[
'
seconds_since_
start
'
]
y
=
df
[
'
duration
'
]
title
=
"
Procedure: {}
"
.
format
(
self
.
name
)
title
=
"
Long Procedure: {}
"
.
format
(
self
.
name
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
16
,
9
))
sns
.
line
plot
(
x
=
x
,
y
=
y
,
hue
=
list
(
self
.
dataframe
.
index
.
get_level_values
(
0
)),
color
=
"
blue
"
)
sns
.
hist
plot
(
x
=
x
,
y
=
y
,
color
=
"
blue
"
)
self
.
_add_logo
(
"
desy_logo.png
"
,
logo_size
=
0.15
,
logo_x
=
1.065
,
logo_y
=
1.04
)
ax
.
set_xscale
(
'
log
'
)
ax
.
set_yscale
(
'
log
'
)
ax
.
set_xlabel
(
"
Data size [Bytes]
"
)
ax
.
set_ylabel
(
"
Time/Event [s]
"
)
plt
.
title
(
title
)
...
...
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