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

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

[Octave-bug-tracker] [bug #39767] initial axes are not ordered properly


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #39767] initial axes are not ordered properly
Date: Tue, 13 Aug 2013 17:37:13 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

Follow-up Comment #5, bug #39767 (project octave):

Ok.  I may have misunderstood what is happening. Running the script below from
a file,


subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1));
hax = findall (gcf (), 'type', 'axes');
positions1 = cell2mat (get (hax, 'position'))
subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1));
hax = findall (gcf (), 'type', 'axes');
positions2 = cell2mat (get (hax, 'position'))


Matlab gives


positions1 =

    0.1300    0.1100    0.7750    0.3412
    0.1300    0.5838    0.7750    0.3412

positions2 =

    0.1300    0.1100    0.7750    0.3412
    0.1300    0.5838    0.7750    0.3412


and Octave gives


positions1 =

   0.13000   0.12384   0.77500   0.32733
   0.13000   0.58384   0.77500   0.32733

positions2 =

   0.13000   0.12384   0.77500   0.32733
   0.13000   0.58384   0.77500   0.32733


After restarting Octave, the similar test in graphics.cc fails for me.


test graphics.cc
  ***** xtest
 ## Doubling up on subplots results in axes out of order
 hf = figure ("visible", "off");
 graphics_toolkit (hf, "fltk");
 unwind_protect
   subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1));
   subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1));
   hax = findall (gcf (), "type", "axes");
   positions = cell2mat (get (hax, "position"));
   assert (positions(1,2) > positions(2,2))
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! known failure
assert (positions (1, 2) > positions (2, 2)) failed
PASSES 22 out of 22 tests (1 expected failure)


However, if I run the test a second time, it passes.


test graphics
PASSES 22 out of 22 tests




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39767>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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