# HG changeset patch # User Ben Abbott # Date 1293661776 18000 # Node ID bc509d5f763f1b8794ead09dabf2d0ab18f9770d # Parent 00b0aa8d539e3d23a6a4d20827c07a5e4b7ec219 text.m: New demo for 3D plot and text with verticalalignment. diff -r 00b0aa8d539e -r bc509d5f763f scripts/ChangeLog --- a/scripts/ChangeLog Wed Dec 29 17:26:21 2010 -0500 +++ b/scripts/ChangeLog Wed Dec 29 17:29:36 2010 -0500 @@ -1,5 +1,6 @@ 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. diff -r 00b0aa8d539e -r bc509d5f763f scripts/plot/text.m --- a/scripts/plot/text.m Wed Dec 29 17:26:21 2010 -0500 +++ b/scripts/plot/text.m Wed Dec 29 17:29:36 2010 -0500 @@ -128,3 +128,17 @@ %! xlabel ("horizontal alignment") %! ylabel ("vertical alignment") %! title ("text alignment and rotation (0:30:360 degrees)") + +%!demo +%! clf +%! h = mesh (peaks, "edgecolor", 0.7 * [1 1 1], +%! "facecolor", "none", +%! "facealpha", 0); +%! for t = 0:45:359; +%! text (25, 25, 0, "Vertical Alignment = Bottom", +%! "rotation", t, +%! "horizontalalignment", "left", +%! "verticalalignment", "bottom") +%! endfor +%! caxis ([-100 100]) +%! title ("Vertically Aligned at Bottom")