diff --git a/figures/structure_layers_2_001.pdf b/figures/structure_layers_2_001.pdf new file mode 100644 index 0000000..08e8505 Binary files /dev/null and b/figures/structure_layers_2_001.pdf differ diff --git a/figures/structure_layers_2_001.png b/figures/structure_layers_2_001.png new file mode 100644 index 0000000..2fe9640 Binary files /dev/null and b/figures/structure_layers_2_001.png differ diff --git a/figures/structure_layers_2_002.pdf b/figures/structure_layers_2_002.pdf new file mode 100644 index 0000000..b8d7585 Binary files /dev/null and b/figures/structure_layers_2_002.pdf differ diff --git a/figures/structure_layers_2_002.png b/figures/structure_layers_2_002.png new file mode 100644 index 0000000..4f668bd Binary files /dev/null and b/figures/structure_layers_2_002.png differ diff --git a/figures/structure_layers_2_003.pdf b/figures/structure_layers_2_003.pdf new file mode 100644 index 0000000..6bb6c8f Binary files /dev/null and b/figures/structure_layers_2_003.pdf differ diff --git a/figures/structure_layers_2_003.png b/figures/structure_layers_2_003.png new file mode 100644 index 0000000..d64ef74 Binary files /dev/null and b/figures/structure_layers_2_003.png differ diff --git a/figures/structure_layers_2_004.pdf b/figures/structure_layers_2_004.pdf new file mode 100644 index 0000000..0a3a3f6 Binary files /dev/null and b/figures/structure_layers_2_004.pdf differ diff --git a/figures/structure_layers_2_004.png b/figures/structure_layers_2_004.png new file mode 100644 index 0000000..2372f1e Binary files /dev/null and b/figures/structure_layers_2_004.png differ diff --git a/figures/structure_layers_2_005.pdf b/figures/structure_layers_2_005.pdf new file mode 100644 index 0000000..a7f3dfe Binary files /dev/null and b/figures/structure_layers_2_005.pdf differ diff --git a/figures/structure_layers_2_005.png b/figures/structure_layers_2_005.png new file mode 100644 index 0000000..ccbba12 Binary files /dev/null and b/figures/structure_layers_2_005.png differ diff --git a/figures/structure_layers_2_006.pdf b/figures/structure_layers_2_006.pdf new file mode 100644 index 0000000..82e3604 Binary files /dev/null and b/figures/structure_layers_2_006.pdf differ diff --git a/figures/structure_layers_2_006.png b/figures/structure_layers_2_006.png new file mode 100644 index 0000000..d1fb6fc Binary files /dev/null and b/figures/structure_layers_2_006.png differ diff --git a/figures/structure_layers_2_007.pdf b/figures/structure_layers_2_007.pdf new file mode 100644 index 0000000..46327ad Binary files /dev/null and b/figures/structure_layers_2_007.pdf differ diff --git a/figures/structure_layers_2_007.png b/figures/structure_layers_2_007.png new file mode 100644 index 0000000..449fee6 Binary files /dev/null and b/figures/structure_layers_2_007.png differ diff --git a/figures/structure_layers_2_008.pdf b/figures/structure_layers_2_008.pdf new file mode 100644 index 0000000..22689cd Binary files /dev/null and b/figures/structure_layers_2_008.pdf differ diff --git a/figures/structure_layers_2_008.png b/figures/structure_layers_2_008.png new file mode 100644 index 0000000..32d2b5a Binary files /dev/null and b/figures/structure_layers_2_008.png differ diff --git a/figures/structure_layers_4_001.pdf b/figures/structure_layers_4_001.pdf new file mode 100644 index 0000000..24f4779 Binary files /dev/null and b/figures/structure_layers_4_001.pdf differ diff --git a/figures/structure_layers_4_001.png b/figures/structure_layers_4_001.png new file mode 100644 index 0000000..9ced394 Binary files /dev/null and b/figures/structure_layers_4_001.png differ diff --git a/figures/structure_layers_4_002.pdf b/figures/structure_layers_4_002.pdf new file mode 100644 index 0000000..86ca535 Binary files /dev/null and b/figures/structure_layers_4_002.pdf differ diff --git a/figures/structure_layers_4_002.png b/figures/structure_layers_4_002.png new file mode 100644 index 0000000..24c60ea Binary files /dev/null and b/figures/structure_layers_4_002.png differ diff --git a/figures/structure_layers_4_003.pdf b/figures/structure_layers_4_003.pdf new file mode 100644 index 0000000..b8a8425 Binary files /dev/null and b/figures/structure_layers_4_003.pdf differ diff --git a/figures/structure_layers_4_003.png b/figures/structure_layers_4_003.png new file mode 100644 index 0000000..85dfeda Binary files /dev/null and b/figures/structure_layers_4_003.png differ diff --git a/figures/structure_layers_4_004.pdf b/figures/structure_layers_4_004.pdf new file mode 100644 index 0000000..9ebc72b Binary files /dev/null and b/figures/structure_layers_4_004.pdf differ diff --git a/figures/structure_layers_4_004.png b/figures/structure_layers_4_004.png new file mode 100644 index 0000000..3dcd7c6 Binary files /dev/null and b/figures/structure_layers_4_004.png differ diff --git a/figures/structure_layers_4_005.pdf b/figures/structure_layers_4_005.pdf new file mode 100644 index 0000000..5480a7f Binary files /dev/null and b/figures/structure_layers_4_005.pdf differ diff --git a/figures/structure_layers_4_005.png b/figures/structure_layers_4_005.png new file mode 100644 index 0000000..6942755 Binary files /dev/null and b/figures/structure_layers_4_005.png differ diff --git a/figures/structure_layers_6_001.pdf b/figures/structure_layers_6_001.pdf new file mode 100644 index 0000000..6b755a3 Binary files /dev/null and b/figures/structure_layers_6_001.pdf differ diff --git a/figures/structure_layers_6_001.png b/figures/structure_layers_6_001.png new file mode 100644 index 0000000..8cbce34 Binary files /dev/null and b/figures/structure_layers_6_001.png differ diff --git a/src/plot_bayesian_optimization.py b/src/plot_bayesian_optimization.py index 29bc063..8507d5f 100644 --- a/src/plot_bayesian_optimization.py +++ b/src/plot_bayesian_optimization.py @@ -78,7 +78,7 @@ def get_means_sems(values): if __name__ == '__main__': show_figure = True - save_figure = True + save_figure = False for num_layers in num_layerss: transparencies_all = [] diff --git a/src/plot_structures.py b/src/plot_structures.py index 4d96da1..407ffca 100644 --- a/src/plot_structures.py +++ b/src/plot_structures.py @@ -118,9 +118,9 @@ def plot_structure(materials, thicknesses, show_figure, save_figure, str_figure) plt.tight_layout() if save_figure: - plt.savefig(os.path.join(path_all, f'{str_figure}.pdf'), + plt.savefig(os.path.join(path_figures, f'{str_figure}.pdf'), format='pdf', transparent=True, bbox_inches='tight') - plt.savefig(os.path.join(path_all, f'{str_figure}.png'), + plt.savefig(os.path.join(path_figures, f'{str_figure}.png'), format='png', transparent=True, bbox_inches='tight') if show_figure: @@ -176,10 +176,13 @@ def plot_structure(materials, thicknesses, show_figure, save_figure, str_figure) indices = [] for ind, pareto in enumerate(pareto_frontier): - if pareto[0] >= 0.65 and pareto[1] >= 30: + if pareto[0] >= 0.60 and pareto[1] >= 30: indices.append(ind) print(len(indices)) + materials_all = materials_all[indices] + thicknesses_all = thicknesses_all[indices] + for ind, elem in enumerate(zip(materials_all, thicknesses_all)): materials, thicknesses = elem str_figure = f'structure_layers_{num_layers}_{ind + 1:03d}'