subplot(1,2,1) plot([0 1],[-2.02 1.3311],'k','linewidth',2);hold on plot([0 1],[0 0],'k') %% set(gca,'ytickmode','manual','ytick',[]); sgca=get(gca); text(.1,.5,num2str(sgca.ylim(1),"%3.1f")) text(.3,.5,num2str(sgca.ylim(2),"%3.1f")) subplot(1,2,2) plot([0 1],[-2.02 1.3311],'k','linewidth',2);hold on plot([0 1],[0 0],'k') set(gca,'ytickmode','manual','ytick',[]); sgca=get(gca); text(.1,.5,num2str(sgca.ylim(1),"%3.1f")) text(.3,.5,num2str(sgca.ylim(2),"%3.1f"))