[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64929] print() changes legend position
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #64929] print() changes legend position |
Date: |
Sun, 26 Nov 2023 15:18:01 -0500 (EST) |
Update of bug #64929 (project octave):
Category: Plotting => Plotting with OpenGL
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #2:
I can confirm the issue. Simply reducing the size of the figure and restoring
it (as `print` does in the background) is enough to reproduce:
plot(get(gca,'xlim'),[0.3 0.3],'--r')
lh=legend('peak2peak');
ax=get(gca,'position');
lp = get(lh,'position');
lp = [ax(1)+ax(3)-lp(3) ax(2)+ax(4)-lp(4) lp(3) lp(4)];
set(lh,'position', lp);
fp = get (gcf, 'position');
set (gcf, 'position', [fp(1) fp(2) fp(3)/2 fp(4)/2], 'position', fp);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64929>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/