[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo
From: |
Doug Stewart |
Subject: |
[Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1" |
Date: |
Thu, 10 Aug 2017 22:44:02 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 |
Follow-up Comment #10, bug #51723 (project octave):
I did some more testing and used this version of copyobj demo
%!demo
%! hobj = clf;
%! set (hobj, "name", "Original", "numbertitle", "off");
%! hold on;
%! x = 1:10;
%! y = x.^2;
%! dy = 2 * (.2 * x);
%! y2 = (x - 3).^2;
%! hg = errorbar (x, y, dy);
%! set (hg, "marker", "^", "markerfacecolor", rand (1,3));
%! plot (x, y2, "ok-");
%! legend ("11errorbar", "line");
%! title( "Original");
%! drawnow ();
%! pos = get (hobj, "position");
%! scrn = get (0, "screensize");
%! set (hobj, "position", [scrn(3)/2-pos(3)-10, scrn(4)/2-pos(4)/2,
pos(3:4)]);
%! drawnow ();
%! % get(hobj)
%! hnew = copyobjds (hobj);
%! % get(hnew)
%! drawnow ();
%! set (hnew, "name", "Copyobj");
%! legend ("errorbar22", "line");
%! title( "new");
%! drawnow ();
%! set (hnew, "position", [scrn(3)/2-pos(3)-10, scrn(4)/2-pos(4)/2,
pos(3:4)]);
%! drawnow ();
1) orderfiels.m is called 14 times!!
2) with a breakpoint in copyobj it stops after the first window is created.
3) The fist window looks good at this point.
4) the legend has 11errorbar and title is "original"
5) and box is good
6) continue from break-point
7)with a break-point in orderfields.m you can watch it construct the next
window.
8) and at the end the title "original shows up on the 2nd window and the box
gets small.
9) the first window now has a title of "new" and a legend of "errorbar22" and
a good size box.
10) It is the newer window that in now titled "original" that has the small
box.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51723>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51723] text box wrong in "demo copyobj 1", (continued)
- [Octave-bug-tracker] [bug #51723] text box wrong in "demo copyobj 1", Doug Stewart, 2017/08/10
- [Octave-bug-tracker] [bug #51723] text box wrong in "demo copyobj 1", Rik, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Rik, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Rik, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Doug Stewart, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Rik, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Doug Stewart, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Dmitri A. Sergatskov, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Doug Stewart, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1", Doug Stewart, 2017/08/10
- [Octave-bug-tracker] [bug #51723] legend box incorrectly sized in "demo copyobj 1",
Doug Stewart <=
- [Octave-bug-tracker] [bug #51723] orderfields does not correctly work with a second argument specifying ordering, Rik, 2017/08/11
- [Octave-bug-tracker] [bug #51723] orderfields does not correctly work with a second argument specifying ordering, Dmitri A. Sergatskov, 2017/08/11