<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div>Thanks for the acceptance!</div><div>I have 15 classes and using common spatial patterns.</div><div>I&#39;m plotting the first common spatial pattern as attached. In case of two classes (for example: hand movement, rest) then the spatial pattern shows two colors red, and blue. For example red is for movement and blue is for rest.</div><div>I understand that the common spatial pattern is one vs. all . But when I plot in case of many classes, then which class vs. all is shown in the topoplot here?</div><div>Can I specify which class vs. all to plot?</div><div>Below is part of the code I&#39;musing :</div><div><br></div><div>csp = CSP(n_components=20,reg=None)</div><div>csp.fit(my_array,y)</div><div><br></div><div><div>## compute spatial filtered spectrum</div><div>_po = []</div><div>for x in my_array:</div><div>    f,p = welch(np.dot(csp.filters_[0,:].T,x), 500, nperseg=50)</div><div>    po.append(p)</div><div>po = np.array(po)</div></div><div><br></div><div><div>## prepare topoplot</div><div>_,epos,_,_,_ = _prepare_topo_plot(my_raw,&#39;eeg&#39;,None)</div></div><div><br></div><div><div>## plot first pattern</div><div>pattern = csp.patterns_[0,:]</div><div>pattern -= pattern.mean()</div><div>ix = np.argmax(abs(pattern))</div><div>if pattern[ix]&gt;0:</div><div>        sign = 1.0</div><div>else:</div><div>        sign = -1.0</div><div>fig, ax_topo = plt.subplots(1)</div></div><div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div>