-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot results separately #157
Comments
Hi @andrisecker , Sure, so running the wvd = WignerVilleDistribution(sig)
tfr, ts, freqs = wvd.run()
plt.imshow(np.abs(tfr)) Instead of this, you can also pass and fig, ax = plt.subplots(nrows=2, ncols=2) # grid of 4 subplots
wvd = WignerVilleDistribution(sig)
wvd.run()
wvd.plot(ax=ax[2, 2])
# This will plot the TFR in the bottom right subplot, leaving the others intact. (Got this from how pandas does it's plotting) Thanks, |
thanks @jaidevd! I'm having hard time to interpret what I see by using By using Morlet I still have a question for this though: Is there any kind of documentation available about the math behind it (particularly the Thanks! |
Hi @andrisecker Sorry for the delay in responding. Yes, in the current form, the heatmaps are difficult to interpret, not just for WVD but even for simpler tools like spectrograms. I'm in the process of revamping the interface a bit so that the distributions are more intuitive. This might take a while to fix, I'll keep updating it here. Thanks, |
Coming back to the original issue, I think it is necessary to separate the plotting code from the TFR classes. The |
Hi @jaidevd,
amazing package, thanks very much!
I might find the answer by locating in the code, but if you could answer that would speed it up:
I was wondering if it's possible to get the computed data and plot the results separately? (eg as a subplot of an other big plot...)
The text was updated successfully, but these errors were encountered: