Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Sep 24, 2021
1 parent 20d01b8 commit e65f0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/ch04_Python-SP.ipynb
Expand Up @@ -481,7 +481,7 @@
"logX = 20*np.log10(X)\n",
"\n",
"fig, ax = plt.subplots(1, 2, figsize=(10, 4), sharex=True)\n",
"freq = np.arange(len(X)) * sr / 2 / len(X)\n",
"freq = np.arange(len(X)) / 2 / len(X) * sr\n",
"ax[0].plot(freq, X)\n",
"ax[0].set_title(\"Amplitude spectrum\")\n",
"ax[0].set_xlim(0, sr // 2)\n",
Expand Down

0 comments on commit e65f0d1

Please sign in to comment.