% fig.m % --------------------------------------------------------------------- % imagesc data data=100*rand(7,71); figure imagesc_handle=imagesc(data(7:-1:1,1:71)) % --------------------------------------------------------------------- % A text(-22,0.5,'A','Fontsize',30,'FontWeight','bold') % --------------------------------------------------------------------- % x tick x_tick_range=cat(2,1:10:71) set(gca,'XTick',x_tick_range) set(gca,'XTickLabel',{'100','200','300','400','500','600','700','800'}) % --------------------------------------------------------------------- % x label text(30,8.5,'D [E]','Fontsize',24) % --------------------------------------------------------------------- % y tick set(gca,'YTick',1:1:7) set(gca,'YTickLabel',{''}) y_title=sprintf('A:B [C]') text(-18,5.7,y_title,'Fontsize',24,'Rotation',90) % --------------------------------------------------------------------- % y label text_con7=sprintf('1:2'); text_con6=sprintf('3:4'); text_con5=sprintf('5:6'); text_con4=sprintf('7:8'); text_con3=sprintf('9:19'); text_con2=sprintf('11:12'); text_con1=sprintf('13:14'); text(-10,1,text_con1,'Fontsize',18) text(-10,2,text_con2,'Fontsize',18) text(-10,3,text_con3,'Fontsize',18) text(-10,4,text_con4,'Fontsize',18) text(-10,5,text_con5,'Fontsize',18) text(-10,6,text_con6,'Fontsize',18) text(-10,7,text_con7,'Fontsize',18) % --------------------------------------------------------------------- % outer frame box off % --------------------------------------------------------------------- % colorbar set(0,'DefaultAxesTickDir','in'); caxis([0 100]) colorbar_handle=colorbar set(colorbar_handle,'Fontsize',10) set(colorbar_handle,'YTick',[0 10 100]) set(0,'DefaultAxesTickDir','out'); % --------------------------------------------------------------------- % size % space from left, space from bottom, size width, size length set(gca,'Position',[0.21 0.17 0.65 0.8]) % of imagesc set(colorbar_handle,'Position',[0.88 0.17 0.05 0.8]) % of colorbar % --------------------------------------------------------------------- % save fig % file_fig=sprintf('./data/sample.epsc'); % saveas(gcf,file_fig) % close