Commit 27dd44d8 authored by Jean-Baptiste Mouret's avatar Jean-Baptiste Mouret
Browse files

fix the bug with the size of the images for the BO benchmark

parent a281b126
......@@ -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 = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment