diff scripts/plot/text.m @ 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 74e285bb61c9
children 1740012184f9
line wrap: on
line diff
--- 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")