Please ignore the {oo+1} next to yticks, I forgot to delete for the sake of simplicity, the line should read:
text(gm(2) + ts,nt(ti), num2str(yticks(ti)),'fontsize',10,'rotation',45,'color',grey2,'fontweight','bold') % tick labels, ts is a parameter for the distance to the ticks