Time/frequency color map in python

2020-01-19 11:12发布

问题:

Is there in native Python 3.X library or in scipy/numpy/matplolib libraries a function or their short set which could help me to draw a plot similar to this one(?):

What would be an efficient way to achieve something like this? Thank you in advance.

回答1:

The bottom plot is the result of Continuous Wavelet Transform. There is a function called cwt() in Scipy. Check it out here. http://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.cwt.html