<div dir="ltr"><div dir="ltr">Hi Anderson, <div> There are a couple of ways to do this.  See below two of them:</div><div><br></div><div> <b>Use std_dipplot.m from the command window (the easy way)</b></div><div>For this, you can use the following sample code.</div><div><br></div><div>STUDY = std_dipplot(STUDY, ALLEEG, 'clusters', [2 3], 'design',1, 'mode', 'multicolor');<br></div><div><br></div><div> This will plot the clusters 2 and 3 using different colors. The colors here are defined in a list inside the function std_dipplot. But if you want to pass a new set of colors, then you may want to use the option 'dipcolor' in the same function. This will allow you to define a custom list of colors for each cluster.</div><div><br></div><div><b> Command line code (the hard way)</b></div><div>Make sure to get the handle of the figure where dipoles are plotted. Click anywhere on your figure and then:</div><div> <span class="gmail-s1" style="font-family:Courier;color:rgb(0,0,0)">h = gcf; </span><span style="color:rgb(37,153,45);font-family:Courier">% get handles of figure</span></div>






<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(178,69,243)"><span class="gmail-s1" style="color:rgb(0,0,0)">hdipoles = findobj(h,</span>'-regexp'<span class="gmail-s1" style="color:rgb(0,0,0)">,</span>'Tag'<span class="gmail-s1" style="color:rgb(0,0,0)">,</span>'dipole\w'<span class="gmail-s1" style="color:rgb(0,0,0)">,</span>'Type'<span class="gmail-s1" style="color:rgb(0,0,0)">,</span>'surface'<span class="gmail-s1" style="color:rgb(0,0,0)">); </span><span class="gmail-s2" style="color:rgb(37,153,45)">% Get dipole handles in the figure</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(37,153,45)"><span class="gmail-s1" style="color:rgb(0,0,0)">set(hdipoles,</span><span class="gmail-s3" style="color:rgb(178,69,243)">'FaceColor'</span><span class="gmail-s1" style="color:rgb(0,0,0)">, [0 1 1]); </span>% Set color for dipoles (here [0 1 1] is fuccia)</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Courier;color:rgb(37,153,45)"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" style="" color="#000000">Hope this helps,</font></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" style="" color="#000000">Ramon</font></p><div><br></div><div><br></div><div> </div><div><b><br></b></div><div>  </div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 12:08 PM Anderson de Souza Castelo Oliveira <<a href="mailto:oliveira@mp.aau.dk" target="_blank">oliveira@mp.aau.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DA" link="#0563C1" vlink="#954F72">
<div class="m_3349266367908962387m_-7529708487393002134WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060">I have been working on an analysis where I have some EEG clusters, and I’d like to use different colors to highlight two different “sub-samples” that
 I found in each cluster. Is there a way to change the color of the clustered ICs in the 3D view of the cluster (like in the figure I attached the link to: <a href="https://www.dropbox.com/s/fisjxwn5zdrm71s/Example_EEG.png?dl=0" target="_blank">https://www.dropbox.com/s/fisjxwn5zdrm71s/Example_EEG.png?dl=0</a> )?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060">Thanks in advance,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002060">Anderson<u></u><u></u></span></p>
</div>
</div>

_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_3349266367908962387gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="color:rgb(136,136,136)">_____________________________________________________</span><br></div><div><span style="color:rgb(136,136,136)">Ramon Martinez-Cancino</span></div><span style="color:rgb(136,136,136)">Swartz Center for Computational Neuroscience</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Institute for Neural Computation, University of California San Diego</span><br></div></div>