Mercurial > hg > octave-nkf
diff scripts/plot/legend.m @ 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 | 8a4e53cf79c9 |
children | e39f00a32dc7 |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -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); +