diff scripts/plot/private/__actual_axis_position__.m @ 10953:9c0b366583cb

Revert treatment of activepositionproperty from the gnuplot backend.
author Ben Abbott <bpabbott@mac.com>
date Wed, 08 Sep 2010 17:59:39 -0400
parents a72d53df4fa6
children 2ab8cc6dcced
line wrap: on
line diff
--- a/scripts/plot/private/__actual_axis_position__.m
+++ b/scripts/plot/private/__actual_axis_position__.m
@@ -43,12 +43,8 @@
     set (axis_obj.parent, "units", orig_fig_units)
     set (axis_obj.parent, "position", orig_fig_position)
   end_unwind_protect
-  ## Get axes size in pixels
-  if (strcmp (axis_obj.activepositionproperty, "position"))
-    pos_in_pixels = axis_obj.position .* fig_position([3, 4, 3, 4]);
-  else
-    pos_in_pixels = axis_obj.outerposition .* fig_position([3, 4, 3, 4]);
-  endif
+  ## Get axis plot-box size in pixels
+  pos_in_pixels = axis_obj.position .* fig_position([3, 4, 3, 4]);
     
   nd = __calc_dimensions__ (h);
 
@@ -86,10 +82,8 @@
       pos_in_pixels = pos_in_pixels + dy*[0.0, 0.5, 0.0, -1.0];
     endif
     pos = pos_in_pixels ./ fig_position([3, 4, 3, 4]);
-  elseif (strcmp (axis_obj.activepositionproperty, "position"))
+  else
     pos = axis_obj.position;
-  else
-    pos = axis_obj.outerposition;
   endif
 endfunction