octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60133] Not possible to disable automatic plac


From: Rik
Subject: [Octave-bug-tracker] [bug #60133] Not possible to disable automatic placement routines for legend objects
Date: Thu, 4 Mar 2021 15:24:52 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Update of bug #60133 (project octave):

                  Status:          Ready For Test => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #11:

I'm attaching a test case, tst_legsz.m, which re-creates the test case from
this report and then sets absolute units on the legend object as Pantxo
suggested.


x=[0:0.1:1];
plot(x,x.^2,x,x.^3,x,x.^0.5);
hl=legend({'(1 →
2)','beginning','path'},'fontsize',15.145,'location','northoutside','orientation',
'horizontal');
disp ("First Position");
pos=get(hl,'position')
pos(1)=0.01;
pos(3)=0.98;
set(hl,'position',pos)

set (hl, 'units', 'pixels');


The behavior seems pretty good to me when re-sizing.

I'm going to mark this bug as fixed and close the report.



(file #50988)
    _______________________________________________________

Additional Item Attachment:

File name: tst_legsz.m                    Size:0 KB
    <https://file.savannah.gnu.org/file/tst_legsz.m?file_id=50988>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60133>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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