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

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

[Octave-bug-tracker] [bug #60133] Setting 'position' property of the leg


From: Valdas
Subject: [Octave-bug-tracker] [bug #60133] Setting 'position' property of the legend messes the plot
Date: Sat, 27 Feb 2021 05:44:49 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

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

                 Summary: Setting 'position' property of the legend messes the
plot
                 Project: GNU Octave
            Submitted by: zmogas
            Submitted on: Sat 27 Feb 2021 10:44:47 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

 Scenario:
 - create a plot,
 - create a legend,
 - widen the legend.
 One liner code:

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

 Result is attached: legend jumps to the left, width of legend is not 0.9 as
requested in the code, axes overlaps the legend.

 In dev version 6.0.0 I don't saw this effect.

 Output of "hg log -r." in a HG octve dir:
changeset:   29371:d35ed8538d69
bookmark:    @
parent:      29369:c75996cbe3ba
parent:      29370:8e549734531e
user:        Rik <rik@octave.org>
date:        Sun Feb 14 10:28:13 2021 -0800
summary:     maint: merge stable to default.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 27 Feb 2021 10:44:47 AM UTC  Name: Screenshot_20210227_123406.png 
Size: 82KiB   By: zmogas

<http://savannah.gnu.org/bugs/download.php?file_id=50934>

    _______________________________________________________

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]