[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56110] Setting figure position is ignored whe
From: |
Lars Kindermann |
Subject: |
[Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn |
Date: |
Tue, 9 Apr 2019 09:18:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 |
URL:
<https://savannah.gnu.org/bugs/?56110>
Summary: Setting figure position is ignored when set before
the figure is drawn
Project: GNU Octave
Submitted by: larskindermann
Submitted on: Tue 09 Apr 2019 01:18:06 PM 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
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
These two figures should have the same size and position, regardless when they
are drawn:
f1 = figure();
pos1 = get(f1,"position")
pos1(1) = pos1(1) + 50;
pos1(2) = pos1(2) - 50;
pos1(3) = pos1(4) * 2
set(f1,"position",pos1) #before drawn
drawnow
get(f1,"position")
f2 = figure();
pos2 = get(f2,"position")
pos2(1) = pos2(1) + 50;
pos2(2) = pos2(2) - 50;
pos2(3) = pos2(4) * 2
drawnow
set(f2,"position",pos2) #after drawn
get(f2,"position")
but the position of the first figure is changed back by drawnow (and even not
exactly to the initial settings):
pos1 = 300 200 560 420
pos1 = 350 150 840 420
ans = 300 200 560 418
pos2 = 300 200 560 420
pos2 = 350 150 840 420
ans = 350 150 840 420
As far as I remember, Matlab always behaves like the second example. Maybe
somebody could check this...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56110>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn,
Lars Kindermann <=
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Lars Kindermann, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Rik, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Lars Kindermann, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Lars Kindermann, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Mike Miller, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Mike Miller, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Dmitri A. Sergatskov, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Mike Miller, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Rik, 2019/04/09
- [Octave-bug-tracker] [bug #56110] Setting figure position is ignored when set before the figure is drawn, Mike Miller, 2019/04/09