Book Image

NumPy: Beginner's Guide

By : Ivan Idris
Book Image

NumPy: Beginner's Guide

By: Ivan Idris

Overview of this book

Table of Contents (21 chapters)
NumPy Beginner's Guide Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
NumPy Functions' References
Index

Time for action – plotting the Hamming window


Let's plot the Hamming window:

  1. Call the NumPy hamming() function:

    window = np.hamming(42)
  2. 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.