Mercurial > forge
changeset 11354:b51e7aa86f44 octave-forge
fix bug#38020 in statistics, boxplot and update demo
author | wwwandy |
---|---|
date | Sun, 06 Jan 2013 00:40:28 +0000 |
parents | 6fec379f586c |
children | 43f59bbdce7b |
files | main/statistics/inst/boxplot.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main/statistics/inst/boxplot.m Fri Jan 04 22:54:20 2013 +0000 +++ b/main/statistics/inst/boxplot.m Sun Jan 06 00:40:28 2013 +0000 @@ -312,14 +312,14 @@ hs.outliers = h(no); end if ~isempty (outliers2_y) - no2 = no(end) + [1:size(outliers2_y,2)]; + no2 = nm(end) + [1:size(outliers2_y,2)]; hs.outliers2 = h(no2); end endfunction %!demo +%! axis ([0,3]); +%! boxplot ({randn(10,1)*5+140, randn(13,1)*8+135}); +%! set(gca (), "xtick", [1 2], "xticklabel", {"girls", "boys"}) %! title ("Grade 3 heights"); -%! axis ([0,3]); -%! tics ("x", 1:2, {"girls"; "boys"}); -%! boxplot ({randn(10,1)*5+140, randn(13,1)*8+135});