In Matplotlib, Python - Plotting the amplitude of .wav file on 3d axes -
i have simple script generates amplitude plot .wav file follows:-
import matplotlib.pyplot plt scipy.io import wavfile # api fs, data = wavfile.read('audio1.wav') # load data plt.plot(data) # plot entire amplitude curve of audio file plt.show()
resulting in following:-
link example image script outputs here
in 2d image data retrieved audio file provides values plot x , y axes
i have been attempting plot on 3d axes, uasing guide:-
http://matplotlib.org/examples/mplot3d/lines3d_demo.html
but cannot seem extract values x , y axes satisfactorily apply.
any ideas??
Comments
Post a Comment