How to plot eeg data spectrogram as shown?

Recently i was going thorough a research paper . The author first applied variational modes decomposition on an elecrodes epoch and then used short time Fourier transformation and finally plotted spectrogram as shown in below image. How to plot spectrogram like this in python. Whenever i try to do get simple spectrogram but not like this . Please help.


You can use the mne.time_frequency module to create such plots. There is a tutorial and an example that show what can be done.

1 Like

Could you please tell me the method for making this color map?

The colormaps (cmap parameter in MNE viz functions) can be any matplotlib colormap. See the matplotlib documentation on the topic of colormaps. For example, this page: Creating Colormaps in Matplotlib β€” Matplotlib 3.7.1 documentation

2 Likes

Thank you very much! It’s amazing,I remember your portrait and I followed you on Github.

1 Like