Mercurial > hg > octave-terminal
changeset 12340:d63007ac067a
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 | eda5eabd5d0b |
children | 402456ba3f61 |
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 @@ -1,3 +1,7 @@ +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 +