Draw the patterns matrix of CSP

Recently, I am using FBCSP to process data, and then I want to see what it looks like after processing, and express it in the form of a topographic map, but there is no function that meets my needs, so I try to implement it myself, and record it here for future convenience. Check out.

Draw the patterns matrix of CSP

The data has been processed by FBCSP, but I want to draw the topographic map of the patterns calculated by CSP, and draw it into a matrix according to the frequency band, as shown in the figure below.

insert image description here

Then I started to check how mne's CSP is used. I saw this article Motor imagery decoding from EEG data using the Common Spatial Pattern (CSP) . In the article, I found the code part of the figure below, and found that the function can be used to draw CSP. of patternstopographic maps:

insert image description here
But I want to arrange the pictures vertically, but I didn't find any parameters to set after I went around, and then I looked at the related method mne.decoding.CSP of CSP , and I didn't find a suitable function to set.

Guess you like

Origin blog.csdn.net/qq_41990294/article/details/129446431