summaryrefslogtreecommitdiffstats
path: root/dpd/src/Dab_Util.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-13 18:34:05 +0200
committerandreas128 <Andreas>2017-09-13 18:34:05 +0200
commit426671f4af2a5d1d5d01225194eb66b2edb8c059 (patch)
tree994a98618521afcec5e6d19c443ba85eaa8af51e /dpd/src/Dab_Util.py
parenta6ab5661fabc51aa1bdfc48c44bdef4b1f30e095 (diff)
downloaddabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.tar.gz
dabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.tar.bz2
dabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.zip
Fix non closed figures
Diffstat (limited to 'dpd/src/Dab_Util.py')
-rw-r--r--dpd/src/Dab_Util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/dpd/src/Dab_Util.py b/dpd/src/Dab_Util.py
index e3dbfe3..37be5db 100644
--- a/dpd/src/Dab_Util.py
+++ b/dpd/src/Dab_Util.py
@@ -49,7 +49,7 @@ class Dab_Util:
plt.plot(c, label="corr")
plt.legend()
plt.savefig(corr_path)
- plt.clf()
+ plt.close()
return np.argmax(c) - off + 1
@@ -118,7 +118,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
off_meas = self.lag_upsampling(sig_rx, sig_tx, n_up=1)
off = int(abs(off_meas))
@@ -161,7 +161,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
sig_rx = sa.subsample_align(sig_rx, sig_tx)
@@ -185,7 +185,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
sig_rx = pa.phase_align(sig_rx, sig_tx)
@@ -209,7 +209,7 @@ class Dab_Util:
fig.tight_layout()
fig.savefig(fig_path)
- fig.clf()
+ plt.close(fig)
logging.debug("Sig1_cut: %d %s, Sig2_cut: %d %s, off: %d" % (len(sig_tx), sig_tx.dtype, len(sig_rx), sig_rx.dtype, off))
return sig_tx, sig_rx