Plotting pywt.dwt output, basic matplotlib code for scalogram

5,986 views
Skip to first unread message

Stephane Rolland

unread,
May 10, 2013, 5:36:12 AM5/10/13
to pywav...@googlegroups.com
I'm trying to dive into wavelets, and pywavelet seems to be the good choice. The "hello wavelet!" 2-line example at the beginning of the pywavelet site is a good appetizer !

However I'm stuck just after that. I have applied dwt to my time series thus I have :
>>> import pywt
>>> cA, cD = pywt.dwt(my_time_series, 'db1')
But I'm unable to visualize the "multidimensional" result of this dwt.

What basic code would you use with matplotlib to display a scalograme of this output result (cA, cD) ?





Filip Wasilewski

unread,
May 10, 2013, 6:04:25 AM5/10/13
to pywav...@googlegroups.com
Hi,

What basic code would you use with matplotlib to display a scalograme of this output result (cA, cD) ?

Take a look at https://github.com/nigma/pywt/tree/master/demo. There's a handful of examples that use matplotlib to visualize output of 1D and 2D transforms.

Filip

Reply all
Reply to author
Forward
0 new messages