Skip to content

Commit 0a6715e

Browse files
committed
Adds pdf/png to the repo
1 parent dc012e0 commit 0a6715e

9 files changed

+14
-9
lines changed

experiment2_plot.py

+14-9
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@
134134
n_plot_row = 2
135135
height = (width / n_plot_row) / aspect
136136

137-
fn = os.path.join(args.out, f"experiment2_metrics.pdf")
138-
139137
fig = plt.figure()
140138
g1 = sns.catplot(
141139
kind="box",
@@ -176,11 +174,12 @@
176174

177175
g1.facet_axis(0, 0).set_ylabel("Improvement [dB]")
178176

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")
180180
plt.close()
181181

182182
# Figure Runtime
183-
fn = os.path.join(args.out, f"experiment2_runtime.pdf")
184183
ax = sns.lineplot(
185184
data=df_melt[df_melt["Metric"] == "Runtime per Iteration [ms]"],
186185
x="Channels",
@@ -197,11 +196,13 @@
197196
# sns.despine(offset=10, trim=True)
198197
sns.despine(offset=10, trim=False, left=True, bottom=True)
199198
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")
201203
plt.close()
202204

203205
# Figure for evaluation time (bss_eval)
204-
fn = os.path.join(args.out, f"experiment2_evaltime.pdf")
205206
g2 = sns.catplot(
206207
kind="point",
207208
data=df_melt,
@@ -212,7 +213,10 @@
212213
)
213214
sns.despine(offset=10, trim=False, left=True, bottom=True)
214215
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")
216220
plt.close()
217221

218222
# Histogram of RT60
@@ -224,6 +228,7 @@
224228
sns.despine(offset=10, trim=False, left=True, bottom=True)
225229
# plt.gca().xaxis.set_major_locator(MaxNLocator(integer=True))
226230
# 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")
229234
plt.close()
12.2 KB
Binary file not shown.
15.9 KB
Loading
18.3 KB
Binary file not shown.
12.5 KB
Loading
15.9 KB
Binary file not shown.
15.9 KB
Loading

figures_icassp_final/rt60_hist.pdf

9.83 KB
Binary file not shown.

figures_icassp_final/rt60_hist.png

4.75 KB
Loading

0 commit comments

Comments
 (0)