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

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

[Octave-bug-tracker] [bug #40686] trouble with subplots and colorbar


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #40686] trouble with subplots and colorbar
Date: Sun, 24 Nov 2013 02:03:27 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

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

                 Summary: trouble with subplots and colorbar
                 Project: GNU Octave
            Submitted by: bpabbott
            Submitted on: Sat 23 Nov 2013 09:03:26 PM EST
                Category: Plotting
                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:

The demo below exhibits three problems

(1) The zlim() is not set correctly (the peaks are truncated)
(2) The axes plot boxes are not consistent in size
(3) The colorbar heights are short.

These problems only exist with "axes square; axes equal".


%!demo
%! clf;
%! [x, y, z] = peaks ();
%!
%! ax(1) = subplot (1, 3, 1);
%! surf (x, y, z)
%! view (0, 90)
%! axis square
%! axis equal
%! cb(1) = colorbar ();
%! axis tight
%!
%! ax(2) = subplot (1, 3, 2);
%! surf (x, y, z*10)
%! view (0, 90)
%! axis square
%! axis equal
%! cb(2) = colorbar ();
%! axis tight
%!
%! ax(3) = subplot (1, 3, 3);
%! surf (x, y, z/10)
%! view (0, 90)
%! axis square
%! axis equal
%! cb(3) = colorbar ();
%! axis tight
%!
%! set (gcf (), "position", get (gcf (), "position") .* [0.5 1 2 1])
%!
%! axes_positions = get (ax, 'position')
%! colorbar_positions = get (cb, 'position')


The resulting positions are below.


axes_positions = 
{
  [1,1] =

     0.13000   0.11000   0.17072   0.81500

  [2,1] =

     0.43444   0.11000   0.15181   0.81500

  [3,1] =

     0.73889   0.11000   0.13289   0.81500

}
colorbar_positions = 
{
  [1,1] =

     0.322065   0.403684   0.012804   0.227633

  [2,1] =

     0.605227   0.416295   0.011386   0.202409

  [3,1] =

     0.8883889   0.4289074   0.0099667   0.1771852

}




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 23 Nov 2013 09:03:26 PM EST  Name: figure.png  Size: 86kB   By:
bpabbott

<http://savannah.gnu.org/bugs/download.php?file_id=29695>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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