I have the following code, creating figures which I print to files:
f=figure;
set(gcf,'Visible','off');
imagesc (exp_genes_sorted_cut);
h=colorbar;
set(gcf,'Colormap',mycmap);
set(gca, 'xtick', 1:num_tissues_displayed);
set(gca, 'xticklabel', tissues, 'fontsize', 14);
ylabel('Genes', 'Fontsize', 18);
xlabel('Tissues', 'Fontsize', 18);
I want to add legend to the right of the colorbar, and I tried doing so using the legend function, but it is not shown... using the text function places it outside the printanle area. Can anyone help ? Thanks,,,