Mercurial > hg > octave-lyh
changeset 6430:215b141470b4
[project @ 2007-03-21 20:58:08 by dbateman]
author | dbateman |
---|---|
date | Wed, 21 Mar 2007 20:58:08 +0000 |
parents | 6ff2d413cf58 |
children | ff87ad14403f |
files | scripts/testfun/speed.m |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/speed.m +++ b/scripts/testfun/speed.m @@ -234,11 +234,14 @@ ## Plot the data if no output is requested. doplot = (nargout == 0); + + if (doplot) + figure; + endif if doplot && !isempty(__f2) - - subplot(121); + hold on; xlabel("test length"); title (__f1); ylabel("speedup ratio"); @@ -247,7 +250,8 @@ __test_n, __tnew./__torig, ["-*g;", strrep(__f2,";","."), "/", strrep(__f1,";","."), ";"]); subplot (122); - + hold on; + xlabel("test length"); ylabel ("best execution time (ms)"); title (["init: ", __init]); loglog ( __test_n, __tnew*1000, ["*-g;", strrep(__f1,";","."), ";" ], @@ -260,6 +264,7 @@ elseif doplot subplot(111); + hold on; xlabel("test length"); ylabel ("best execution time (ms)"); title ([__f1, " init: ", __init]);