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

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

[Octave-bug-tracker] [bug #39327] subplot "looseinset", "position" and "


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #39327] subplot "looseinset", "position" and "outerposition" are wrong
Date: Sun, 23 Jun 2013 11:20:55 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36

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

                 Summary: subplot "looseinset", "position" and "outerposition"
are wrong
                 Project: GNU Octave
            Submitted by: bpabbott
            Submitted on: Sun 23 Jun 2013 07:20:53 AM EDT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Ben Abbott
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:


figure (2, '__graphics_toolkit__', 'fltk')
clf ()
subplot (2, 1, 1)
plot (rand (3))
legend ({'blue', 'green', 'red'}, 'location', 'northeastoutside')
set (flipud (findall (gcf (), '-property', 'fontsize')), 'fontsize', 10)
tightinset = get (gca (), 'tightinset');
looseinset = get (gca (), 'looseinset');
position = get (gca (), 'position');
outerposition = get (gca (), 'outerposition');

matlab_looseinset = [0.13, 0.0853, 0.278, 0.075];
matlab_tightinset = [0.0393, 0.0381, 0.0089, 0.0190];
matlab_position = [0.13, 0.5838, 0.592, 0.3412];
matlab_outerposition = [0, 0.5457, 1, 0.4097];

printf ('\nMatlab "position"      = [%.5f, %.5f, %.5f, %.5f]\n', double
(matlab_position))
printf ('Octave "position"      = [%.5f, %.5f, %.5f, %.5f]\n', double
(position))
printf ('Matlab "outerposition" = [%.5f, %.5f, %.5f, %.5f]\n', double
(matlab_outerposition))
printf ('Octave "outerposition" = [%.5f, %.5f, %.5f, %.5f]\n', double
(outerposition))
printf ('Matlab "tightinset"    = [%.5f, %.5f, %.5f, %.5f]\n', double
(matlab_tightinset))
printf ('Octave "tightinset"    = [%.5f, %.5f, %.5f, %.5f]\n', double
(tightinset))
printf ('Matlab "looseinset"    = [%.5f, %.5f, %.5f, %.5f]\n', double
(matlab_looseinset))
printf ('Octave "looseinset"    = [%.5f, %.5f, %.5f, %.5f]\n', double
(looseinset))


The script above produces the result below.


Matlab "position"      = [0.13000, 0.58380, 0.59200, 0.34120]"
Octave "position"      = [0.09643, 0.55284, 0.73638, 0.37335]"
Matlab "outerposition" = [0.00000, 0.54570, 1.00000, 0.40970]"
Octave "outerposition" = [0.04999, 0.51000, 0.78282, 0.44000]"
Matlab "tightinset"    = [0.03930, 0.03810, 0.00890, 0.01900]"
Octave "tightinset"    = [0.04644, 0.04284, 0.00000, 0.02381]"
Matlab "looseinset"    = [0.13000, 0.08530, 0.27800, 0.07500]"
Octave "looseinset"    = [0.05932, 0.09737, 0.00000, 0.05411]"


The "tightinset" may also be wrong, or the variance may be due to a different
font (both Matlab and Octave are using 10pt font).

(Note: The problems with these axes properties interferes with rendering the
legend correctly)




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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