# HG changeset patch # User Ben Abbott # Date 1296922449 18000 # Node ID d63007ac067a734a55ce410db9fe1727149717a1 # Parent eda5eabd5d0b315160db0996741e987aa9337121 legend.m: Add demo for inline keys created by two plot commands. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +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 --git a/scripts/plot/legend.m b/scripts/plot/legend.m --- 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 +