-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexperiments_plots.m
40 lines (39 loc) · 1.64 KB
/
experiments_plots.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% experiments_plots.m
% Copyright (C) 2021, Domenico Tortorella
% Copyright (C) 2021, University of Pisa
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>.
load experiments.mat
M = mean(Acc, 4);
S = std(Acc, [], 4);
titleTexts = {'dblp ct1', 'facebook ct1', 'highschool ct1', 'infectious ct1', 'mit ct1', 'tumblr ct1', 'dblp ct2', 'facebook ct2', 'highschool ct2', 'infectious ct2', 'mit ct2', 'tumblr ct2'};
figure;
tiledlayout(2, 6, 'TileSpacing', 'compact');
markers = ['o', 's', '^', 'h', 'd'];
for i = 1:length(titleTexts)
nexttile;
%errorbar(squeeze(M(i,:,:)), squeeze(S(i,:,:)), 's-', 'CapSize', 0);
hPlot = plot(squeeze(M(i,:,:)), '.-', 'MarkerSize', 6);
for k = 1:length(H)
hPlot(k).Marker = markers(k);
hPlot(k).MarkerFaceColor = hPlot(k).Color;
hPlot(k).MarkerEdgeColor = 'w';
end
xlim([L(1)-.2 L(end)+.2]);
xticks(L);
set(gca, 'XTickLabelRotation', 0);
title(titleTexts{i});
end
hLegend = legend(hPlot, {'H = 1', 'H = 2', 'H = 4', 'H = 8', 'H = 16'}, 'Orientation', 'horizontal');
hLegend.ItemTokenSize = [10,20];