# HG changeset patch # User Ben Abbott # Date 1296922449 18000 # Node ID b268c9a79d096842ca8e3ed338adcb37d63b8462 # Parent 7428d177f00a0e2ae9f00fb2c1e9864149bfefae legend.m: Add demo for inline keys created by two plot commands. diff -r 7428d177f00a -r b268c9a79d09 scripts/ChangeLog --- a/scripts/ChangeLog Sat Feb 05 10:19:13 2011 -0500 +++ b/scripts/ChangeLog Sat Feb 05 11:14:09 2011 -0500 @@ -11,6 +11,10 @@ * help/help.m, linear-algebra/onenormest.m, plot/graphics_toolkit.m, plot/pie3.m, plot/view.m, signal/periodogram.m: Grammarcheck docstrings. +2011-02-05 Ben Abbott + + * plot/legend.m: Add demo for inline keys created by two plot commands. + 2011-02-05 David Bateman Bug #32022 and #32343. diff -r 7428d177f00a -r b268c9a79d09 scripts/plot/legend.m --- a/scripts/plot/legend.m Sat Feb 05 10:19:13 2011 -0500 +++ b/scripts/plot/legend.m Sat Feb 05 11:14:09 2011 -0500 @@ -1071,3 +1071,11 @@ %! title ("Only the sin() objects have keylabels"); %! legend (h([1, 3]), {"sin(x)", "sin(x^2/10)"}, "location", "southwest"); +%!demo +%! clf +%! x = 0:0.1:10; +%! plot (x, sin(x), ";sin(x);") +%! hold all +%! plot (x, cos(x), ";cos(x);") +%! hold off +