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

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

[Octave-bug-tracker] [bug #64929] print() changes legend position


From: Fabio
Subject: [Octave-bug-tracker] [bug #64929] print() changes legend position
Date: Fri, 24 Nov 2023 08:17:00 -0500 (EST)

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

                 Summary: print() changes legend position
                   Group: GNU Octave
               Submitter: efferre79
               Submitted: Fri 24 Nov 2023 01:16:58 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 8.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 24 Nov 2023 01:16:58 PM UTC By: Fabio <efferre79>
I have found the same problem reported in bug #62063 which states it is fixed
in 7.1. The example found there is indeed working but instead I can replicate
the same kind of problem with the following code


plot(get(gca,'xlim'),[0.3 0.3],'--r')
lh=legend('peak2peak');
ax=get(gca,'position');
lp=get(lh,'position');
set(lh,'position',[ax(1)+ax(3)-lp(3) ax(2)+ax(4)-lp(4) lp(3) lp(4)]);
print('test.png')


The figure shows a shift for the legend after print() execution. The output
image shows a shifted legend too. 

Tested same problem on Windows.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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