changeset 22624:37b7b86f62f2 stable

Fix legend.m typo in demo example 23 (bug #49341). * legend.m: For demo 23 illustrating "legend off", make the legend strings length 11 and replace double quote " (string) with single (quote transpose). Place a one second pause between showing the legend and turning off the legend, for dramatic effect.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Sat, 15 Oct 2016 02:51:30 -0500
parents 7adc5bbd840a
children 081a201b77c7
files scripts/plot/appearance/legend.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m	Thu Oct 13 08:04:41 2016 -0400
+++ b/scripts/plot/appearance/legend.m	Sat Oct 15 02:51:30 2016 -0500
@@ -1419,7 +1419,8 @@
 %! xlabel ("Indices");
 %! ylabel ("Random Values");
 %! title ('Legend "off" deletes the legend');
-%! legend (cellstr (num2str ((1:10)")), "location", "northeastoutside");
+%! legend (cellstr (num2str ((0:10)')), "location", "northeastoutside");
+%! pause (1);
 %! legend off;
 %! axis ([0, 10, 0 1]);