# Topographical distribution of CSP

**URL:** <https://mne.discourse.group/t/topographical-distribution-of-csp/2564>\
**Category:** Support & Discussions\
**Tags:** eeg, spatial-filter\
**Created:** [January 24, 2021, 4:28pm UTC](https://mne.discourse.group/t/topographical-distribution-of-csp/2564 "2021-01-24T16:28:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsa934](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@dsa934](https://mne.discourse.group/u/dsa934)\
**Post date:** [January 24, 2021, 4:28pm UTC](https://mne.discourse.group/t/topographical-distribution-of-csp/2564/1 "2021-01-24T16:28:41Z")

</div>

**If you have a question or issue with MNE-Python, please include the following info:**

- MNE-Python version: latest version
- operating system: windows 10

=========================

Hi,

I want to draw a topographical distribution for CSP. ( my final goal)  
I have EEG data of 280x118x300.(trials x channels x time sample points)

Q1. The tutorial uses example data. How do I follow the tutorial with my data?

Q2. What does it mean to draw a CSP topographical map?

Q3. I know that to draw a topomap, the position of the electrode and the data corresponding to it must exist. CSP is a feature vector. How do you map this to a channel?

My question may be a rather basic one, but I have encountered this field recently and I am lacking in knowledge. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![agramfort](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agramfort](https://mne.discourse.group/u/agramfort)\
**Post date:** [January 28, 2021, 8:00am UTC](https://mne.discourse.group/t/topographical-distribution-of-csp/2564/2 "2021-01-28T08:00:38Z")

</div>

have a look at:

[https://mne.tools/stable/auto\_tutorials/intro/plot\_40\_sensor\_locations.html#sphx-glr-auto-tutorials-intro-plot-40-sensor-locations-py](https://mne.tools/stable/auto_tutorials/intro/plot_40_sensor_locations.html#sphx-glr-auto-tutorials-intro-plot-40-sensor-locations-py)

[https://mne.tools/stable/auto\_tutorials/intro/plot\_30\_info.html#sphx-glr-auto-tutorials-intro-plot-30-info-py](https://mne.tools/stable/auto_tutorials/intro/plot_30_info.html#sphx-glr-auto-tutorials-intro-plot-30-info-py)

and maybe [mne.EvokedArray — MNE 0.22.0 documentation](https://mne.tools/stable/generated/mne.EvokedArray.html?highlight=evokedarray#mne.EvokedArray)

HTH  
Alex

---

<div class="post-metadata">

**Author:** ![mmagnuski](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mmagnuski/32/153_2.png) [@mmagnuski](https://mne.discourse.group/u/mmagnuski)\
**Post date:** [January 31, 2021, 1:46pm UTC](https://mne.discourse.group/t/topographical-distribution-of-csp/2564/3 "2021-01-31T13:46:22Z")

</div>

Regarding your three questions:

Q1: depending on the format of your data you can read it via `mne.io.read_(...)`. For example epoched eeglab .set files are read using `mne.io.read_epochs_eeglab`. See also [these tutorials](https://mne.tools/dev/auto_tutorials/index.html#reading-data-for-different-recording-systems)  
Q2: This means: to plot the CSD values on the scalp by mapping them to corresponding channel positions (and interpolating the values to create a continuous map / image).  
Q3: Its easy if you know that the values in the channel dimension of a given array are in the same order as channels in info object (that holds channel positions and much more).
