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

Anderson de Souza Castelo Oliveira oliveira at mp.aau.dk
Tue Dec 4 00:27:29 PST 2018


Dear Ramon,

Thanks for the recommendations. My question was related to changing the color of different specific dipoles from the same cluster (not different clusters with different colors). Is there a possibility to do it?
Best regards,
Anderson

From: Ramón Martinez <nucleuscub at gmail.com>
Sent: 4. december 2018 00:36
To: Anderson de Souza Castelo Oliveira <oliveira at mp.aau.dk>; EEGLAB List <eeglablist at sccn.ucsd.edu>
Subject: Re: [Eeglablist] change individual IC color in clustered 3D image

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<mailto: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<mailto: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<mailto: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/20181204/f5738d01/attachment.html>


More information about the eeglablist mailing list