changeset 10561:5f46cc552ce5

__go_draw_axes__.m: Consistent placement of axes for ps vs other gnuplot terminals.
author Ben Abbott <bpabbott@mac.com>
date Sat, 24 Apr 2010 11:49:58 -0400
parents ea79ebe99051
children b834afa451a2
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Apr 23 22:20:12 2010 -0700
+++ b/scripts/ChangeLog	Sat Apr 24 11:49:58 2010 -0400
@@ -1,3 +1,8 @@
+2010-04-24  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: Consistent placement of axes for ps vs
+	other gnuplot terminals.
+
 2010-04-23  Ben Abbott <bpabbott@mac.com>
 
 	* plot/colorbar.m: Fix colorbar() bugs for manual plotboxaspectratio.
--- a/scripts/plot/__go_draw_axes__.m	Fri Apr 23 22:20:12 2010 -0700
+++ b/scripts/plot/__go_draw_axes__.m	Sat Apr 24 11:49:58 2010 -0400
@@ -50,8 +50,8 @@
       pos = __actual_axis_position__ (axis_obj);
     else
       pos = axis_obj.position;
-      pos = pos - implicit_margin([1, 2, 1, 2]).*[1, 1, -0.5, -0.5];
     endif
+    pos(1:2) = pos(1:2) - implicit_margin .* [0.75, 0.5];
     if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin"))
       if (nd == 2)
         x = [1, 1];