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

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

[Octave-bug-tracker] [bug #39650] tightinset update is wrong after chang


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #39650] tightinset update is wrong after change of fig position
Date: Mon, 12 Aug 2013 11:56:41 +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 #7, bug #39650 (project octave):

I'm seeing a failure the first time tests are run on graphics.cc


>> test graphics.cc
  ***** test
 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));
   hax = findall (gcf (), "type", "axes");
   positions = cell2mat (get (hax, "position"));
   outerpositions = cell2mat (get (hax, "outerposition"));
   looseinsets = cell2mat (get (hax, "looseinset"));
   tightinsets = cell2mat (get (hax, "tightinset"));
   subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1));
   hax = findall (gcf (), "type", "axes");
   assert (cell2mat (get (hax, "position")), positions, 1e-4);
   assert (cell2mat (get (hax, "outerposition")), outerpositions, 1e-4);
   assert (cell2mat (get (hax, "looseinset")), looseinsets, 1e-4);
   assert (cell2mat (get (hax, "tightinset")), tightinsets, 1e-4);
 unwind_protect_cleanup
   close (hf);
 end_unwind_protect
!!!!! test failed
assert (cell2mat (get (hax, "position")),positions,1e-4) expected
   0.13000   0.58384   0.77500   0.32733
   0.13000   0.12384   0.77500   0.32733
but got
   0.13000   0.12384   0.77500   0.32733
   0.13000   0.58384   0.77500   0.32733
maximum absolute error 0.46 exceeds tolerance 0.0001


The test fails due to the axes objects being in the wrong order. Subsequently,
all tests pass.


test graphics.cc
PASSES 19 out of 19 tests


I'll open a new bug report.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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