legend.m: Add demo to legend for inline key.
author |
Ben Abbott <bpabbott@mac.com> |
date |
Tue, 28 Dec 2010 07:42:34 -0500 |
parents |
1a7b41db5432 |
children |
a4822f3d1032 |
files |
scripts/ChangeLog scripts/plot/legend.m |
diffstat |
2 files changed, 9 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-28 Ben Abbott <bpabbott@mac.com>
+
+ * plot/legend.m: Add demo to legend for inline key.
+
2010-12-27 Ben Abbott <bpabbott@mac.com>
* plot/text.m: Add demo for text rotation and alignment.
--- a/scripts/plot/legend.m
+++ b/scripts/plot/legend.m
@@ -984,6 +984,11 @@
endwhile
endfunction
+%!demo
+%! clf
+%! x = 0:1;
+%! plot (x, x, ";1;", x, 2*x, x, 3*x, ";3;")
+%! title ("1 is Blue, and 3 is Red")
%!demo
%! clf