on=[]; <span class="keyword">end</span>
0016 
0017 colororder=get(h,<span class="string">'colororder'</span>);
0018 <span class="keyword">if</span> ~isempty(permutation); 
0019     colororder=colororder(permutation,:);
0020 <span class="keyword">end</span>
0021 c=get(h,<span class="string">'children'</span>);
0022 
0023 <span class="keyword">for</span> k=1:numel(c);
0024     set(c(numel(c)-k+1),<span class="string">'color'</span>,colororder(1+mod(k-1,size(colororder,1)),:))
0025 <span class="keyword">end</s