<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:Helvetica;}
span.s1
{mso-style-name:s1;
color:#A020F0;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="p1"><o:p> </o:p></p>
<p class="p1">Hi Fieldtrippers:<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">I am trying to make a figure where I label sets of two sensors with different colors on the background of all the sensors (SEEG contacts).<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">For instance I would like to make two contacts red (stimulation contacts) and two contacts blue (recording contacts), with the rest of the contacts black spheres.<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">I attempted the following:<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">ft_plot_sens(electrode_map); %plots all contacts without labels in black
<o:p></o:p></p>
<p class="p1">ft_plot_sens(electrode_map, <span class="s1">'label'</span>, <span class="s1">
'on'</span>, <span class="s1">'fontcolor'</span>, <span class="s1">'b'</span>,<span class="s1">'facecolor'</span>,stim_electrode_clr,<span class="s1">'chantype'</span>,{stimA,stimB});<o:p></o:p></p>
<p class="p1">ft_plot_sens(electrode_map, <span class="s1">'label'</span>, <span class="s1">
'on'</span>, <span class="s1">'fontcolor'</span>, <span class="s1">'b'</span>,<span class="s1">'facecolor'</span>,rec_electrode_clr,<span class="s1">'chantype'</span>,{RecA,RecB});<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">stimA, stimB, RecA, RecB are the strings for the respective channels.<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">I am getting the following error anytime I try to call ft_plot_sens() with fewer than three sensors….
<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="p1" style="border:none;padding:0in">I receive the following error:<o:p></o:p></p>
</div>
<p class="p1"><o:p> </o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">Error using delaunay<o:p></o:p></p>
<p class="p1">At least three input points must be provided to define a triangular mesh.<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">Error in projecttri (line 83)<o:p></o:p></p>
<p class="p1"> tri = delaunay(prj(:,1), prj(:,2));<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">Error in ft_plot_sens (line 303)<o:p></o:p></p>
<p class="p1"> tri = projecttri(pos, 'delaunay');<o:p></o:p></p>
<p class="p1"><o:p> </o:p></p>
<p class="p1">Error in jpPlotElectrodes (line 7)<o:p></o:p></p>
<p class="p1">ft_plot_sens(electrode_map, 'label', 'on', 'fontcolor', 'b','facecolor',stim_electrode_clr,'chantype',{stimA,stimB});<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">I dug down into the implementation of ft_plot_sens() and see that it relies in the depth on a call to deuaunay(…) which looks like needs three arguments.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">I attempted to “trick” the function by putting in a dummy 0,0,0 corner electrode and plotting, however, that messes with the scale of the plot.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Has anyone developed a work around for independently labeling two channels/electrodes at a time a different color?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Kindest regards. Hope everyone is staying healthy out there.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif">JP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>