x=[0:0.1:1];
plot(x,x.^2,x,x.^3,x,x.^0.5);
hl=legend({'(1 → 2)','beginning','path'},'fontsize',15.145,'location','northoutside','orientation', 'horizontal');
disp ("First Position");
pos=get(hl,'position')
pos(1)=0.01;
pos(3)=0.98;
set(hl,'position',pos)

set (hl, 'units', 'pixels');
