function plot_affinity_matrix(affinity_matrix, plot_title)

figure
imagesc(affinity_matrix)
title(plot_title, 'FontName', 'Sans-serif', 'FontSize', 16, 'FontWeight','normal')

xlabel('Parietal branches','FontName', 'Sans-serif', 'FontSize', 14, 'FontWeight','normal')
ylabel('Frontal branches','FontName', 'Sans-serif', 'FontSize', 14, 'FontWeight','normal')

set(gca,'XTick',1:size(affinity_matrix,2));
set(gca,'YTick',1:size(affinity_matrix,1));

% set(gca,'XTickLabels',labels.parietal,'XTickLabelROtation',45,'FontSize',14)
% set(gca,'YTickLabels',labels.frontal,'FontSize',14)

legend_properties = colorbar;
legend_properties.Label.String = 'Average correlation between exemplars in a branch';
legend_properties.Label.FontSize = 12;


end

