Time for action – plotting the Hamming window
Let's plot the Hamming window:
- Call the NumPy
hamming()
function:window = np.hamming(42)
- Plot the window with matplotlib:
plt.plot(window) plt.show()
The Hamming window plot appears as follows:
What just happened?
We plotted the Hamming window with the NumPy hamming()
function.