changeset 16921:9a316ec12b5f

legend.m: Use Matlab coding conventions in %!demo blocks so comparison script can run. * scripts/plot/legend.m: Use Matlab coding conventions in %!demo blocks so comparison script can run.
author Rik <rik@octave.org>
date Sun, 07 Jul 2013 19:52:12 -0700
parents 53eaa83e4181
children bfd119642f6a
files scripts/plot/legend.m
diffstat 1 files changed, 88 insertions(+), 87 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/legend.m	Sun Jul 07 19:45:23 2013 -0700
+++ b/scripts/plot/legend.m	Sun Jul 07 19:52:12 2013 -0700
@@ -1443,116 +1443,117 @@
 %! clf;
 %! option = 'right';
 %! subplot (3,1,1);
-%! plot (rand (1,4));
-%! xlabel xlabel
-%! ylabel ylabel
-%! title ('Subplots should adjust to the legend placed outside');
-%! legend ({'1'}, 'location', 'northeastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  xlabel xlabel;
+%!  ylabel ylabel;
+%!  title ('Subplots should adjust to the legend placed outside');
+%!  legend ({'1'}, 'location', 'northeastoutside');
+%!  legend (option);
 %! subplot (3,1,2);
-%! plot (rand (1,4));
-%! xlabel xlabel
-%! ylabel ylabel
-%! legend ({'1234567890'}, 'location', 'eastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  xlabel xlabel;
+%!  ylabel ylabel;
+%!  legend ({'1234567890'}, 'location', 'eastoutside');
+%!  legend (option);
 %! subplot (3,1,3);
-%! plot (rand (1,4));
-%! xlabel xlabel
-%! ylabel ylabel
-%! legend ({'12345678901234567890'}, 'location', 'southeastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  xlabel xlabel;
+%!  ylabel ylabel;
+%!  legend ({'12345678901234567890'}, 'location', 'southeastoutside');
+%!  legend (option);
 
 %!demo % bug 36408
 %! clf;
 %! option = 'right';
-%! subplot (3,1,1)
-%! plot (rand (1,4));
-%! title ('Subplots should adjust to the legend placed outside');
-%! legend ({'1'}, 'location', 'northwestoutside');
-%! legend (option);
+%! subplot (3,1,1);
+%!  plot (rand (1,4));
+%!  title ('Subplots should adjust to the legend placed outside');
+%!  legend ({'1'}, 'location', 'northwestoutside');
+%!  legend (option);
 %! subplot (3,1,2);
-%! plot (rand (1,4));
-%! legend ({'1234567890'}, 'location', 'westoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  legend ({'1234567890'}, 'location', 'westoutside');
+%!  legend (option);
 %! subplot (3,1,3);
-%! plot (rand (1,4));
-%! legend ({'12345678901234567890'}, 'location', 'southwestoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  legend ({'12345678901234567890'}, 'location', 'southwestoutside');
+%!  legend (option);
 
 %!demo % bug 36408
 %! clf;
 %! option = 'right';
 %! subplot (3,1,1);
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! title ('Subplots should adjust to the legend placed outside');
-%! legend ({'1'}, 'location', 'northeastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  title ('Subplots should adjust to the legend placed outside');
+%!  legend ({'1'}, 'location', 'northeastoutside');
+%!  legend (option);
 %! subplot (3,1,2);
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'1234567890'}, 'location', 'eastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'1234567890'}, 'location', 'eastoutside');
+%!  legend (option);
 %! subplot (3,1,3);
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'12345678901234567890'}, 'location', 'southeastoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'12345678901234567890'}, 'location', 'southeastoutside');
+%!  legend (option);
 
 %!demo % bug 36408
 %! clf;
 %! option = 'right';
-%! subplot (3,1,1)
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! title ('Subplots should adjust to the legend placed outside');
-%! legend ({'1'}, 'location', 'northwestoutside');
-%! legend (option);
+%! subplot (3,1,1);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  title ('Subplots should adjust to the legend placed outside');
+%!  legend ({'1'}, 'location', 'northwestoutside');
+%!  legend (option);
 %! subplot (3,1,2);
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'1234567890'}, 'location', 'westoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'1234567890'}, 'location', 'westoutside');
+%!  legend (option);
 %! subplot (3,1,3);
-%! plot (rand (1,4));
-%! set (gca (), "yaxislocation", "right")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'12345678901234567890'}, 'location', 'southwestoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'yaxislocation', 'right');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'12345678901234567890'}, 'location', 'southwestoutside');
+%!  legend (option);
 
-%!demo % bug 36408
+%!demo % bug 36408;
 %! clf;
 %! option = 'right';
-%! subplot (3,1,1)
-%! plot (rand (1,4));
-%! set (gca (), "xaxislocation", "top")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! title ('Subplots should adjust to the legend placed outside');
-%! legend ({'1'}, 'location', 'northwestoutside');
-%! legend (option);
+%! subplot (3,1,1);
+%!  plot (rand (1,4));
+%!  set (gca (), 'xaxislocation', 'top');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  title ('Subplots should adjust to the legend placed outside');
+%!  legend ({'1'}, 'location', 'northwestoutside');
+%!  legend (option);
 %! subplot (3,1,2);
-%! plot (rand (1,4));
-%! set (gca (), "xaxislocation", "top")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'1234567890'}, 'location', 'westoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'xaxislocation', 'top');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'1234567890'}, 'location', 'westoutside');
+%!  legend (option);
 %! subplot (3,1,3);
-%! plot (rand (1,4));
-%! set (gca (), "xaxislocation", "top")
-%! xlabel ('xlabel')
-%! ylabel ('ylabel')
-%! legend ({'12345678901234567890'}, 'location', 'southwestoutside');
-%! legend (option);
+%!  plot (rand (1,4));
+%!  set (gca (), 'xaxislocation', 'top');
+%!  xlabel ('xlabel');
+%!  ylabel ('ylabel');
+%!  legend ({'12345678901234567890'}, 'location', 'southwestoutside');
+%!  legend (option);
+