changeset 11418:a140991387fb

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 wrap: on
line diff
--- a/scripts/ChangeLog	Mon Dec 27 21:38:55 2010 -0800
+++ b/scripts/ChangeLog	Tue Dec 28 07:42:34 2010 -0500
@@ -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	Mon Dec 27 21:38:55 2010 -0800
+++ b/scripts/plot/legend.m	Tue Dec 28 07:42:34 2010 -0500
@@ -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