# HG changeset patch # User dbateman # Date 1174510688 0 # Node ID 215b141470b48dc331373b57348f786f39cd4bc0 # Parent 6ff2d413cf58dffbfe2a0ba75bc557398676a0bd [project @ 2007-03-21 20:58:08 by dbateman] diff -r 6ff2d413cf58 -r 215b141470b4 scripts/testfun/speed.m --- a/scripts/testfun/speed.m Wed Mar 21 20:13:03 2007 +0000 +++ b/scripts/testfun/speed.m Wed Mar 21 20:58:08 2007 +0000 @@ -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]);