Mercurial > hg > octave-nkf
changeset 11424:bc509d5f763f
text.m: New demo for 3D plot and text with verticalalignment.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 29 Dec 2010 17:29:36 -0500 |
parents | 00b0aa8d539e |
children | 395945a58c24 |
files | scripts/ChangeLog scripts/plot/text.m |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 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.
--- a/scripts/plot/text.m +++ b/scripts/plot/text.m @@ -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")