Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
27dd44d8
Commit
27dd44d8
authored
Nov 14, 2017
by
Jean-Baptiste Mouret
Browse files
fix the bug with the size of the images for the BO benchmark
parent
a281b126
Changes
1
Hide whitespace changes
Inline
Side-by-side
waf_tools/plot_bo_benchmarks.py
View file @
27dd44d8
...
...
@@ -87,17 +87,6 @@ else:
plot_ok
=
False
Logs
.
pprint
(
'YELLOW'
,
'WARNING: numpy/matplotlib not found: no plot of the BO benchmark results'
)
params
=
{
'axes.labelsize'
:
8
,
'text.fontsize'
:
8
,
'axes.titlesize'
:
10
,
'legend.fontsize'
:
10
,
'xtick.labelsize'
:
5
,
'ytick.labelsize'
:
10
,
'figure.figsize'
:
[
9
,
2.5
]
}
rcParams
.
update
(
params
)
def
load_data
():
files
=
glob
(
"benchmark_results/*/*/*.dat"
)
data
=
defaultdict
(
lambda
:
defaultdict
(
dict
))
...
...
@@ -154,6 +143,19 @@ def custom_boxes(ax, bp):
# plot a single function
def
plot
(
func_name
,
data
,
rst_file
):
# set the figure size
params
=
{
'axes.labelsize'
:
8
,
'text.fontsize'
:
8
,
'axes.titlesize'
:
10
,
'legend.fontsize'
:
10
,
'xtick.labelsize'
:
5
,
'ytick.labelsize'
:
10
,
'figure.figsize'
:
[
9
,
2.5
]
}
rcParams
.
update
(
params
)
# plot
d
=
data
[
func_name
]
da_acc
=
[]
da_time
=
[]
...
...
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