From: us on
"Jan Sousek" <jan.sousek(a)unibw.de> wrote in message <hnvfm0$noq$1(a)fred.mathworks.com>...
> I'm facing this problem as well.

one of the (tedious) solutions

x=0:360;
y=sort(rand(size(x)));
line(x,y);
lh=legend('a');
disp('press any key to make legend smaller...');
pause;
set(lh,'units','pixels');
lp=get(lh,'outerposition');
set(lh,'outerposition',[lp(1:2),50,15]);

us