Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
89682f01
Commit
89682f01
authored
Mar 04, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2fd51bd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
go/neo/t/benchplot
go/neo/t/benchplot
+7
-2
No files found.
go/neo/t/benchplot
View file @
89682f01
...
@@ -660,11 +660,16 @@ def main():
...
@@ -660,11 +660,16 @@ def main():
# text about nodes
# text about nodes
assert
len
(
nodemap
)
<=
2
# XXX fragile
assert
len
(
nodemap
)
<=
2
# XXX fragile
nodemap
[
'rio'
]
=
nodemap
[
'deco'
]
# FIXME temp
nodemap
[
'rio'
]
=
nodemap
[
'deco'
]
# FIXME temp
Bnode
[
'rio'
]
=
Bnode
[
'deco'
]
# XXX temp
for
i
,
node
in
enumerate
(
nodemap
):
for
i
,
node
in
enumerate
(
nodemap
):
ax
=
plt
.
subplot2grid
((
7
,
2
),
(
6
,
i
),
rowspan
=
1
)
# XXX 7,6 hardcoded
ax
=
plt
.
subplot2grid
((
7
,
2
),
(
6
,
i
),
rowspan
=
1
)
# XXX 7,6 hardcoded
ax
.
set_axis_off
()
ax
.
set_axis_off
()
# XXX include pystone in vvv ylabel?
ax
.
text
(
-
0.01
,
-
0.10
,
node
,
rotation
=
'vertical'
,
ha
=
'right'
,
va
=
'top'
,
fontsize
=
'large'
)
# XXX font size?
ax
.
text
(
-
0.02
,
0.25
,
node
,
rotation
=
'vertical'
,
ha
=
'center'
,
va
=
'center'
)
# XXX font size?
# include pystone in ylabel XXX good place?
pys
=
Bnode
[
node
].
byunit
()[
Unit
(
u'pystone/s'
)].
stats
()
pydelta
=
max
(
pys
.
max
-
pys
.
avg
,
pys
.
avg
-
pys
.
min
)
ax
.
text
(
-
0.01
,
-
0.10
,
' (%.1fk ±%2.0f%% pystone/s)'
%
(
pys
.
avg
/
1E3
,
100.
*
pydelta
/
pys
.
avg
),
rotation
=
'vertical'
,
ha
=
'right'
,
va
=
'bottom'
,
fontsize
=
6
)
h
=
1.00
-
0.10
h
=
1.00
-
0.10
hmargin
=
0.01
hmargin
=
0.01
...
...
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