On Wed, Nov 27, 2019 at 11:57 AM LucaLuca via Help list for GNU Octave <
address@hidden> wrote:
excuse me..i give you code:
function canc
EquityO=sum((rand(1,60)),1);
EquityU=sum((rand(1,60)),1);
EquityU_2=sum((rand(1,60)),1);
EquityF=sum((rand(1,60)),1);
other=sum((rand(1,60)),1);
x=1:length(EquityU);
grid on
hold on
plot (x,EquityU,'r',
x,EquityF,'b',x,EquityO,'g',x,EquityU_2,'m',x,other,'c');
hold off
lg1=legend ({'filter
oth_eq','UnFiltred','Filtred','OneContract','UnFiltred_2'},
'location','northwest');
legend boxoff
posvec_lg1 = get(lg1,"position");
set(lg1,"position",[posvec_lg1(1),posvec_lg1(2),0.1*posvec_lg1(3),posvec_lg1(4)]);
endfunction
https://gyazo.com/dfc93dd062172ea44bc701b2bd6b3b11
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
The white box in the background is the legend area. It's already narrower than the text. Isn't narrowing it what you wanted? I have no idea what you mean by "sometimes it goes and does not go".