Prev: Improper index matrix reference
Next: custom legend: different data series with the same colors
From: Jan Sousek on 19 Mar 2010 06:43 "us " <us(a)neurol.unizh.ch> wrote in message <hnvh4r$g17$1(a)fred.mathworks.com>... > "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 work's! Very nice. So the trick is to change the 'units'. Thanks Jan.
|
Pages: 1 Prev: Improper index matrix reference Next: custom legend: different data series with the same colors |