Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nico Vermaas
atdb_plot
Commits
1ca195e0
Commit
1ca195e0
authored
Jun 09, 2019
by
Nico Vermaas
Browse files
adding annotation and legend
parent
bb3595e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
atdb_stats.py
View file @
1ca195e0
...
...
@@ -307,7 +307,7 @@ def do_ingest_speeds(args, starttime, endtime, plot_engine='plotly'):
sorted_datapoints
=
sorted
(
datapoints
,
key
=
lambda
k
:
k
[
'timestamp'
])
# plot the results
atdb_plot
.
do_speed_plot
(
args
.
title
,
args
.
y_axis_title
,
args
.
query
,
sorted_datapoints
)
atdb_plot
.
do_speed_plot
(
args
.
title
,
args
.
y_axis_title
,
args
.
query
,
args
.
annotate
,
sorted_datapoints
)
...
...
@@ -412,6 +412,9 @@ def main():
parser
.
add_argument
(
"--query"
,
default
=
None
,
help
=
"query for the REST API, like 'taskID__contains=190607'"
)
parser
.
add_argument
(
"--annotate"
,
default
=
None
,
help
=
"field to annotate datapoints in the (speed) plot, like 'taskid'"
)
parser
.
add_argument
(
"--interval"
,
default
=
"day"
,
help
=
"Shows bars per interval. Possible options: minute, hour, day, month"
)
...
...
data/ingest_speed_imaging.args
View file @
1ca195e0
...
...
@@ -5,5 +5,7 @@
--y_axis_title=I/O Speed in Gbps
--starttime=2019-06-08 00:00
--endtime=2019-06-09 00:00
--query=taskID__contains=190607
--query=taskID__contains=190608
--query=starttime__gt=2019-06-07T00:00:00Z&starttime__lt=2019-06-11T00:00:00Z
--annotate=taskid
--plot_engine=mathplotlib
\ No newline at end of file
dist/atdb_plot-1.0.0.tar.gz
View file @
1ca195e0
No preview for this file type
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