Mercurial > hg > octave-nkf
changeset 11425:395945a58c24
__go_draw_axes__.m: Tweak vertical alignment of text objects for gnuplot to favor eps/ps output.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 30 Dec 2010 08:28:53 -0500 |
parents | bc509d5f763f |
children | c503ccbe5033 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,8 +1,13 @@ +2010-12-30 Ben Abbott <bpabbott@mac.com> + + * plot/__go_draw_axes__.m: Tweak vertical alignment of text objects + for gnuplot to favor eps/ps output. + 2010-12-29 Ben Abbott <bpabbott@mac.com> * 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 <bpabbott@mac.com>
--- 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.