Skip to content
Permalink
Browse files

Merge pull request #357 from rossbar/enh/reshift_fft

ENH: Re-fftshift masked magnitude for final display.
  • Loading branch information
jni committed Dec 13, 2019
2 parents 915ac1f + 33af794 commit 9aa9fb1be096860e6aa836e8da66a25a77cca0e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 markdown/ch4.markdown
@@ -683,7 +683,7 @@ F_dim = F_dim * peaks.astype(int)
image_filtered = np.real(fftpack.ifft2(F_dim))
f, (ax0, ax1) = plt.subplots(2, 1, figsize=(4.8, 7))
ax0.imshow(np.log10(1 + np.abs(F_dim)), cmap='viridis')
ax0.imshow(fftpack.fftshift(np.log10(1 + np.abs(F_dim))), cmap='viridis')
ax0.set_title('Spectrum after suppression')
ax1.imshow(image_filtered)

0 comments on commit 9aa9fb1

Please sign in to comment.
You can’t perform that action at this time.