|
134 | 134 | n_plot_row = 2
|
135 | 135 | height = (width / n_plot_row) / aspect
|
136 | 136 |
|
137 |
| - fn = os.path.join(args.out, f"experiment2_metrics.pdf") |
138 |
| - |
139 | 137 | fig = plt.figure()
|
140 | 138 | g1 = sns.catplot(
|
141 | 139 | kind="box",
|
|
176 | 174 |
|
177 | 175 | g1.facet_axis(0, 0).set_ylabel("Improvement [dB]")
|
178 | 176 |
|
179 |
| - plt.savefig(fn, bbox_extra_artists=all_artists, bbox_inches="tight") |
| 177 | + for ext in ["pdf", "png"]: |
| 178 | + fn = os.path.join(args.out, f"experiment2_metrics.{ext}") |
| 179 | + plt.savefig(fn, bbox_extra_artists=all_artists, bbox_inches="tight") |
180 | 180 | plt.close()
|
181 | 181 |
|
182 | 182 | # Figure Runtime
|
183 |
| - fn = os.path.join(args.out, f"experiment2_runtime.pdf") |
184 | 183 | ax = sns.lineplot(
|
185 | 184 | data=df_melt[df_melt["Metric"] == "Runtime per Iteration [ms]"],
|
186 | 185 | x="Channels",
|
|
197 | 196 | # sns.despine(offset=10, trim=True)
|
198 | 197 | sns.despine(offset=10, trim=False, left=True, bottom=True)
|
199 | 198 | plt.ylabel("Runtime per Iteration [ms]")
|
200 |
| - plt.savefig(fn, bbox_inches="tight") |
| 199 | + |
| 200 | + for ext in ["pdf", "png"]: |
| 201 | + fn = os.path.join(args.out, f"experiment2_runtime.{ext}") |
| 202 | + plt.savefig(fn, bbox_inches="tight") |
201 | 203 | plt.close()
|
202 | 204 |
|
203 | 205 | # Figure for evaluation time (bss_eval)
|
204 |
| - fn = os.path.join(args.out, f"experiment2_evaltime.pdf") |
205 | 206 | g2 = sns.catplot(
|
206 | 207 | kind="point",
|
207 | 208 | data=df_melt,
|
|
212 | 213 | )
|
213 | 214 | sns.despine(offset=10, trim=False, left=True, bottom=True)
|
214 | 215 | plt.tight_layout(pad=0.1)
|
215 |
| - plt.savefig(fn, bbox_inches="tight") |
| 216 | + |
| 217 | + for ext in ["pdf", "png"]: |
| 218 | + fn = os.path.join(args.out, f"experiment2_evaltime.{ext}") |
| 219 | + plt.savefig(fn, bbox_inches="tight") |
216 | 220 | plt.close()
|
217 | 221 |
|
218 | 222 | # Histogram of RT60
|
|
224 | 228 | sns.despine(offset=10, trim=False, left=True, bottom=True)
|
225 | 229 | # plt.gca().xaxis.set_major_locator(MaxNLocator(integer=True))
|
226 | 230 | # plt.gca().yaxis.set_major_locator(MaxNLocator(integer=True))
|
227 |
| - fig_fn = os.path.join(args.out, f"rt60_hist.pdf") |
228 |
| - plt.savefig(fig_fn, bbox_inches="tight") |
| 231 | + for ext in ["pdf", "png"]: |
| 232 | + fig_fn = os.path.join(args.out, f"rt60_hist.{ext}") |
| 233 | + plt.savefig(fig_fn, bbox_inches="tight") |
229 | 234 | plt.close()
|
0 commit comments