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: Mon, 12 Aug 2013 11:58:00 +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

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

                 Summary: initial axes are not ordered properly
                 Project: GNU Octave
            Submitted by: bpabbott
            Submitted on: Mon 12 Aug 2013 07:57:59 AM EDT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Ben Abbott
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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






    _______________________________________________________

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]