figure(1) clf subplot (3,1,1) plot (rand (1,4)); legend ({"1"}, "location", 'northeastoutside') legend ("right"); subplot (3,1,2) plot (rand (1,4)); legend ({"1234567890"}, "location", 'northeastoutside') legend ("right"); subplot (3,1,3) plot (rand (1,4)); legend ({"12345678901234567890"}, "location", 'northeastoutside') legend ("right");