Skip to content

Spectrogram issue #101

Answered by remrama
sjg2203 asked this question in Q&A
Nov 7, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I'm not sure what's happening with the extra steps to flatten the data, and skeptical something there might be causing this. Have you looked at the length of the final array you have before plotting it to make sure it's as long as you think it should be? Can you try using just this to extract the one-dimensional array of C3 data and plot it?

C3 = raw.get_data(picks=["C3"], units="uV")[0]
yasa.plot_spectrogram(C3, sf)
plt.show()

If that doesn't work, could you help with some more troubleshooting by showing the length of the file? Maybe the output from print(raw.times[0], raw.times[-1])?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sjg2203
Comment options

Answer selected by sjg2203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants