6 % LoM : array of Meshes
7 % RGBcolors :
set boundaries colors
8 % colormap :
set colormap value to \
'Jet\', \'HSV\', \'Gray\', \'colorcube\',\'Cool\',\'Spring\',\'Summer\',...
9 % Legend : set legend visible at true or false
10 % MeshLineWidth : set mesh lines width
11 % LabelLineWidth : set label box lines width
12 % FontSize : set label font size
13 % Label : set mesh label visible, true or false
17 % MultiPlotMesh(LoM,'colormap
','jet
','Label
',true) @endverbatim
18 % \image html images/MultiPlotMesh_Ring3x3_C.png "figure : MultiPlotMesh(LoM,\'colormap\',\'jet\',\'Label\',true)"
23 p.addRequired('LoM
', @isstruct);
25 p.addParamValue('colormap
', 'HSV
', @isstr );
26 p.addParamValue('RGBcolors
', [], @isnumeric );
27 p.addParamValue('MeshLineWidth
', 0.5 , @isnumeric );
28 p.addParamValue('LabelLineWidth
', 2.0 , @isnumeric );
29 p.addParamValue('FontSize
', 12 , @isnumeric );
30 p.addParamValue('Label
', false , @islogical );
35 NumBound=unique(cat(2,LoM(:).bel));
38 cmap=colormap(p.Results.colormap);% colorcube ou Lines Jet HSV
40 t=0:1/(nM-1):1;t=t*0.8;
41 if (isempty(p.Results.RGBcolors))
42 RGBcolors=RGB(t(randperm(nM)),cmap);
44 RGBcolors=p.Results.RGBcolors;
52 for i=1:nM % Boucle sur les maillages
53 h=triplot(LoM(i).me',LoM(i).q(1,:),LoM(i).q(2,:),
'LineWidth',p.Results.MeshLineWidth);%,
'color',RGB(t(i),cmap));
54 set(h,
'color',RGBcolors(i,:));
57 for i=1:nM % Boucle sur les maillages
58 I=find(LoM(i).ql == 0);
59 ip=round(length(I)/2);
60 h=text(LoM(i).q(1,I(ip)),LoM(i).q(2,I(ip)),[
'\Omega_{',num2str(i-1),
'}']);
61 set(h,
'FontSize',p.Results.FontSize,
'Color',
'k',
'BackgroundColor',
'w',
'LineWidth',p.Results.LabelLineWidth,...
62 'EdgeColor',RGBcolors(i,:),
'FontWeight',
'bold');