Skip to content

Commit

Permalink
Close figure after savefig (fixes #225)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Nov 7, 2018
1 parent e914602 commit 9e921ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions megaradrp/recipes/calibration/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def obtain_fiber_flat(self, rss_wl, wlcalib, col1=1900, col2=2100, window=31, de
plt.plot(xx, collapse_smooth, '-')
plt.plot(xx, collapse_smooth_s, '--')
plt.savefig('collapsed_smooth.png')
plt.close()

# Divide each fiber in rss_wl by spectrum
gmean = col_good_mean.mean()
Expand Down

0 comments on commit 9e921ca

Please sign in to comment.