diff scripts/plot/legend.m @ 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 a0dfd7e8e3e2
children 1f54ee6760b5
line wrap: on
line diff
--- 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