help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: legend is too large


From: Brett Green
Subject: Re: legend is too large
Date: Tue, 26 Nov 2019 18:46:09 -0500



On Tue, Nov 26, 2019 at 6:21 AM LucaLuca via Help list for GNU Octave <address@hidden> wrote:
I forgot to write the version of octave that I use:

5.1.0



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



You can do this with the position property. It takes an array as an argument, with the first two arguments being the position and the last two being the width and height of the legend. Therefore, you can make the legend narrower by a factor of e.g. 0.75 by calling

lg1 = legend ({'filter oth_eq', 'UnFiltred','Filtred','OneContract','UnFiltred_2'}, 'location', 'northwest');
posvec_lg1 = get(lg1,"position");
set(lg1,"position",[posvec_lg1(1),posvec_lg1(2),0.75*posvec_lg1(3),posvec_lg1(4)]);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]