diff options
author | andreas128 <Andreas> | 2017-09-13 18:34:05 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-13 18:34:05 +0200 |
commit | 426671f4af2a5d1d5d01225194eb66b2edb8c059 (patch) | |
tree | 994a98618521afcec5e6d19c443ba85eaa8af51e /dpd/src/Model.py | |
parent | a6ab5661fabc51aa1bdfc48c44bdef4b1f30e095 (diff) | |
download | dabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.tar.gz dabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.tar.bz2 dabmod-426671f4af2a5d1d5d01225194eb66b2edb8c059.zip |
Fix non closed figures
Diffstat (limited to 'dpd/src/Model.py')
-rw-r--r-- | dpd/src/Model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpd/src/Model.py b/dpd/src/Model.py index a051927..fe9c56b 100644 --- a/dpd/src/Model.py +++ b/dpd/src/Model.py @@ -139,7 +139,7 @@ class Model: ) plt.hist(phase_diff_choice) plt.savefig('/tmp/hist_' + str(np.random.randint(0, 1000)) + '.svg') - plt.clf() + plt.close() phase_diff_est, phase_A = self.dpd_phase(rx_choice) err_phase = phase_diff_est - phase_diff_choice self.errs_pm.append(np.mean(np.abs(err_phase ** 2))) @@ -326,7 +326,7 @@ class Model: fig.tight_layout() fig.savefig(fig_path) - fig.clf() + plt.close(fig) self.coefs_am = new_coefs_am self.coefs_am_history.append(self.coefs_am) |