plt.plot(t[:len(r)], r) plt.title('Impulse response') plt.xlim(0, 0.2) plt.xticks([]) plt.yticks([]) plt.show() 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33....
Impulse response Frequency response Phase response wvtool Highly configurable Installation Windows: Install latest prebuilt numpy, scipy and matplotlib before installing dspplot python setup.py install Usage Plotting Window functions import dspplot data = [] # create the data dspplot.plot( data, freqr...
My simple approach was to use SCPI from Python code to control the sine-wave spot frequencies, and it's not too granular, in fact I have to list each discrete frequency in the code (not a big deal, especially since I mostly am not looking for any more detail than a few tens of poi...
import numpy as np # create some data to use for the plot dt = 0.001 t = np.arange(0.0, 10.0, dt) r = np.exp(-t[:1000]/0.05) # impulse response x = np.random.randn(len(t)) s = np.convolve(x, r)[:len(x)]*dt # colored noise # the main axes is subplot(111) by def...