Hi there!
I am trying to get the data plotted in mne.viz.plot_topomap from EEG data, as opposed to just the image. As in, I want the 2d array of values of microvolts that is plotted in the image. Is there any way to do this? I’ve been searching through the docs and can’t find a way.
If there isn’t a way, is there any way to get the (x, y) positions of sensors so I can try to compute it myself?
Hello,
Could you share a code snippet with the function you use to create a topographic map?
A topographic map can represent different data, different information. You can in fact create your own topographic maps with mne.viz.plot_topomap
, where you need to provide 2 pieces of information:
- data as an array of shape
(n_channels,)
- sensor location, the easiest is by providing an
mne.Info
The topographic map is then a simple 64x64 grid inteprolation (see theres
argument).
In mne-icalabel
we also have a topographic map function, adapted from MNE-Python, which takes in input the data array and the sensor location and returns the (n_pixels, n_pixels)
array.
Hope this helps,
Mathieu
Here is the line of code to plot the topomap:
epochs_ica.average().plot_topomap(times, average=0.050)
This is epoched EEG data after applying ICA to attempt to remove EOG artifacts.
What I’m mainly wondering is if there’s a way to get the topomap for each point in time from a raw, epochs, or evoked object.
Thank you so much for your response
there is a method evoked.animate_topomap() but it doesn’t exist for Raw
or Epochs
.