Revision 3:162d64fb861c audio_io.py

View differences:

audio_io.py
57 57
## Plotting the new signal using pylab/matplotlib
58 58
#################
59 59

  
60
plt.plot(new_samples)
60
# the x axis now shows the time in seconds instead of the sample number
61
## using the Numpy function linspace in order to create the time array
62
x_axis = np.linspace(0, 0.5, new_samples.size)
63
plt.plot(x_axis, new_samples)
61 64
plt.show()
62 65

  
63 66
#################

Also available in: Unified diff