Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dan Frumin
iris-coq
Commits
6405ebbc
Commit
6405ebbc
authored
Jun 07, 2016
by
Ralf Jung
Browse files
benchmark visualize: but legend next to graph
parent
70afd76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmark/visualize.py
View file @
6405ebbc
...
...
@@ -29,9 +29,9 @@ results = list(results)
timings
=
list
(
map
(
lambda
t
:
t
[:
-
2
]
if
t
.
endswith
(
".v"
)
else
t
,
args
.
timings
))
for
timing
in
timings
:
plt
.
plot
(
list
(
map
(
lambda
r
:
r
.
times
.
get
(
timing
),
results
)),
marker
=
next
(
markers
),
markersize
=
8
)
plt
.
legend
(
timings
,
loc
=
'upper left'
)
plt
.
legend
(
timings
,
loc
=
'upper left'
,
bbox_to_anchor
=
(
1.05
,
1.0
)
)
plt
.
xticks
(
range
(
len
(
results
)),
list
(
map
(
lambda
r
:
r
.
commit
[:
7
],
results
)),
rotation
=
70
)
plt
.
subplots_adjust
(
bottom
=
0.2
)
# more space for the commit labels
plt
.
subplots_adjust
(
bottom
=
0.2
,
right
=
0.7
)
# more space for the commit labels
and legend
plt
.
xlabel
(
'Commit'
)
plt
.
ylabel
(
'Time (s)'
)
...
...
Write
Preview
Supports
Markdown
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