Skip to content

Commit

Permalink
properly remove contours
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 3, 2025
1 parent e3871b3 commit 20d53bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/specsanalyzer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,7 @@ def update(v_vals, pos_x, pos_y, sigma_x, sigma_y, amplitude):
fft_filt.set_data(np.abs(fft_filtered_new.T))

nonlocal cont
for path in cont.get_paths():
path.remove()
cont.remove()
cont = ax.contour(msk.T)

edc.set_ydata(np.sum(filtered_new, 0))
Expand Down

0 comments on commit 20d53bd

Please sign in to comment.