Demo entry 6796419

fromscipy.ioimportwavfilefrommatplotlibimportpyplotaspltimportnumpyasnp# Set the datasamplerate,data=wavfile.read('test.wav')# Load the datatimes=np.arange(len(data))/float(samplerate)# Time sampling# Set the graphplt.figure(figsize=(30,20))# figuresize (width, height)plt.fill_between(times,data,color='b')plt.xlim(times[0],times[-1])plt.xlabel('time (s)')plt.ylabel('amplitude')plt.savefig('plot.png',dpi=100)plt.show()