[our_labels our_map] = load_results_txt('our_result.txt');
[llc_labels llc_map] = load_results_txt('llc_results.txt');
num_classes = length(our_map);

[sort_map, sort_idx] = sort(our_map);

orig_labels = textread('orig_labels.txt', '%s', 'delimiter', '\n');
display_labels = textread('display_label.txt', '%s', 'delimiter', '\n');

llc_idx = cellfun(@(x) strmatch(x, llc_labels), our_labels);
orig_idx = cellfun(@(x) strmatch(x, orig_labels), our_labels);

final_map_data = [llc_map(llc_idx(sort_idx)) sort_map];
barh(final_map_data, 1.3);
legend('LLC', 'Our Method');
set(gca, 'FontSize', 12)
set(gca,'ylim',[0 num_classes+1])
set(gca,'YTick', 1:num_classes)
set(gca,'YTickLabel', display_labels(orig_idx(sort_idx)))
grid;
