[Eeglablist] change individual IC color in clustered 3D image

Ramón Martinez nucleuscub at gmail.com
Mon Dec 3 15:35:51 PST 2018


Hi Anderson,
 There are a couple of ways to do this.  See below two of them:

 *Use std_dipplot.m from the command window (the easy way)*
For this, you can use the following sample code.

STUDY = std_dipplot(STUDY, ALLEEG, 'clusters', [2 3], 'design',1, 'mode',
'multicolor');

 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.

* Command line code (the hard way)*
Make sure to get the handle of the figure where dipoles are plotted. Click
anywhere on your figure and then:
 h = gcf; % get handles of figure

hdipoles = findobj(h,'-regexp','Tag','dipole\w','Type','surface'); % Get
dipole handles in the figure

set(hdipoles,'FaceColor', [0 1 1]); % Set color for dipoles (here [0 1 1]
is fuccia)


Hope this helps,

Ramon






On Mon, Dec 3, 2018 at 12:08 PM Anderson de Souza Castelo Oliveira <
oliveira at mp.aau.dk> wrote:

> Hi all,
>
>
>
> 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:
> https://www.dropbox.com/s/fisjxwn5zdrm71s/Example_EEG.png?dl=0 )?
>
>
>
> Thanks in advance,
>
> Anderson
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu



-- 
_____________________________________________________
Ramon Martinez-Cancino
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20181203/c478b4ec/attachment.html>


More information about the eeglablist mailing list