comparison scripts/plot/__go_draw_axes__.m @ 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 95c3e38098bf
children f5a652a101b0
comparison
equal deleted inserted replaced
10560:ea79ebe99051 10561:5f46cc552ce5
48 nd = __calc_dimensions__ (axis_obj); 48 nd = __calc_dimensions__ (axis_obj);
49 if (strcmpi (axis_obj.plotboxaspectratiomode, "manual")) 49 if (strcmpi (axis_obj.plotboxaspectratiomode, "manual"))
50 pos = __actual_axis_position__ (axis_obj); 50 pos = __actual_axis_position__ (axis_obj);
51 else 51 else
52 pos = axis_obj.position; 52 pos = axis_obj.position;
53 pos = pos - implicit_margin([1, 2, 1, 2]).*[1, 1, -0.5, -0.5]; 53 endif
54 endif 54 pos(1:2) = pos(1:2) - implicit_margin .* [0.75, 0.5];
55 if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin")) 55 if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin"))
56 if (nd == 2) 56 if (nd == 2)
57 x = [1, 1]; 57 x = [1, 1];
58 else 58 else
59 ## 3D plots need to be sized down to fit in the window. 59 ## 3D plots need to be sized down to fit in the window.