summaryrefslogtreecommitdiff
path: root/graph.m
blob: 68f69ac26f8220ccba157355154d52262b9f969b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
tangocolors
colormap(tangocolors_middle);

percent = round(local_min_count / sum(local_min_count) * 100);

labels = {};
p = 0;

for i = 1:size(local_min_count, 2)
	if (p > 50)
		labels{i} = sprintf('%d%% %s', percent(i),pred_methods(i).name);
	else	
		labels{i} = sprintf('%s %d%%', pred_methods(i).name,percent(i));
	end
	p += percent(i);
end

pie(local_min_count, labels);
axis('off');
print('doc/image/opt_pred_pie.svg', '-dsvg', '-F:14');