# HG changeset patch # User Ben Abbott # Date 1293540154 18000 # Node ID a140991387fb4aeb62b079297f7ac4cb0d783ce8 # Parent 1a7b41db5432559f4af4b2ac0232cd8b2176f664 legend.m: Add demo to legend for inline key. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-28 Ben Abbott + + * plot/legend.m: Add demo to legend for inline key. + 2010-12-27 Ben Abbott * plot/text.m: Add demo for text rotation and alignment. diff --git a/scripts/plot/legend.m b/scripts/plot/legend.m --- 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