Skip to content

Instantly share code, notes, and snippets.

@aprovecharLab
Created February 26, 2019 17:20
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save aprovecharLab/7654032c64370672b933559f887afd56 to your computer and use it in GitHub Desktop.
Save aprovecharLab/7654032c64370672b933559f887afd56 to your computer and use it in GitHub Desktop.
Fun with Continuous Wavelet Transform Spectrograms
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MiguelonGonzalez
Copy link

First of all, thank you all for sharing this material. It's being extremely useful for me!
I have slightly modified this code to adapt it to my case of study and I'm wondering if, with regards to CWT, I could visualize period instead of frequencies in the output image. Although it's being a little hard for me to enter into waveletes world, I think I'd have to make a deeper change beyond invertis y-axis, isn't it?
I'd really appreciate someone's aid. Thank you very much in advance.
Kind regards,
Miguel González-Jiménez

@aprovecharLab
Copy link
Author

aprovecharLab commented Jan 29, 2021 via email

@MiguelonGonzalez
Copy link

Hi Steve!
Thank you for your response and that web-link, it's been helpful. I have already tunned your code: what I did finally was obtained the periods just by inverting the frequencies array, and then I plotted them on a log2 scale image for a better visualization.
What I'm hesitating right now is if, somehow, I could plot the arrows in the output XWT image using some of the functions you have programmed, like xwt_phase, so as to obtain a graphic like the one attached.
Thank you again! I hope you're fine.
Miguel
XWT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment