Mercurial > hg > octave-avbm
changeset 12391:b268c9a79d09 release-3-4-x
legend.m: Add demo for inline keys created by two plot commands.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 05 Feb 2011 11:14:09 -0500 |
parents | 7428d177f00a |
children | 2e74073b5791 |
files | scripts/ChangeLog scripts/plot/legend.m |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 <bpabbott@mac.com> + + * plot/legend.m: Add demo for inline keys created by two plot commands. + 2011-02-05 David Bateman <dbateman@free.fr> Bug #32022 and #32343.
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -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 +