# HG changeset patch # User Rik # Date 1373251932 25200 # Node ID 9a316ec12b5fbb23e9d5c7a76d8c75155da5e12e # Parent 53eaa83e418159de1f983c245fa46c17d305ac26 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. diff --git a/scripts/plot/legend.m b/scripts/plot/legend.m --- 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); +