-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_discards.m
56 lines (45 loc) · 1.11 KB
/
plot_discards.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
folderstring = 'june13_compare_trim%i_randpath';
trims = [0 1 2 5];
figure;
for i = 1:length(trims)
%Load
load([sprintf(folderstring,trims(i)) '//setup.mat']);
s1 = subplot(1,4,1);
plot(1:900,stats.template_length)
hold on;
s2 = subplot(1,4,2);
plot(1:900,stats.informed_final,'.')
alpha(.5)
hold on;
s3 = subplot(1,4,3);
plot(1:900,stats.informed_init-stats.informed_final,'.')
hold on;
s4 = subplot(1,4,4);
plot(1:900,stats.time_elapsed)
hold on;
end
%%
title(s1, 'Template size');
title(s2, 'Final Conditional data');
title(s3, 'Library Mismatches');
title(s4, 'Commulative iteration time');
grid(s1,'on');
grid(s2,'on');
grid(s3,'on');
xlabel(s1,'Iteration');
xlabel(s2,'Iteration');
xlabel(s3,'Iteration');
xlabel(s4,'Iteration');
%ylabel(s1,'');
%set(s2,'ytick',[]);
%set(s3,'ytick',[]);
set(s2,'yticklabel',[]);
set(s3,'yticklabel',[]);
set(s4,'YaxisLocation','right');
ylabel(s4,'Time [$s$]');
axis(s1,[0 900 0 260]);
axis(s2,[0 900 0 260]);
axis(s3,[0 900 0 260]);
axis(s4,[0 900 0 27]);
legend(s4,'0','1','2','5');
legend('Location','NorthWest');