# HG changeset patch # User Ben Abbott # Date 1293715733 18000 # Node ID 395945a58c24ef3b8682c846a05ac3d2404310cb # Parent bc509d5f763f1b8794ead09dabf2d0ab18f9770d __go_draw_axes__.m: Tweak vertical alignment of text objects for gnuplot to favor eps/ps output. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,8 +1,13 @@ +2010-12-30 Ben Abbott + + * plot/__go_draw_axes__.m: Tweak vertical alignment of text objects + for gnuplot to favor eps/ps output. + 2010-12-29 Ben Abbott * plot/text.m: New demo for 3D plot and text with verticalalignment. - * plot/__go_draw_axes__.m: Enable vertical alignment of text objects for - gnuplot. + * plot/__go_draw_axes__.m: Enable vertical alignment of text objects + for gnuplot. 2010-12-28 Ben Abbott diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1264,8 +1264,9 @@ dy = 0.5; endswitch ## Gnuplot's Character units are different for x/y and vary with fontsize. The aspect ratio - ## of 1:2.5 was determined by experiment. - dx_and_dy = [(-dy * sind (angle)), (dy * cosd(angle))] .* [2.5 1]; + ## of 1:1.7 was determined by experiment to work for eps/ps/etc. For the MacOS aqua terminal + ## a value of 2.5 is needed. However, the difference is barely noticable. + dx_and_dy = [(-dy * sind (angle)), (dy * cosd(angle))] .* [1.7 1]; if (nd == 3) ## This produces the desired vertical alignment in 3D.