Fix histplot demo (test_run graphics bug_3204) 82/13282/2
Vincent COUVERT [Fri, 29 Nov 2013 14:34:03 +0000 (15:34 +0100)]
Change-Id: I92c7bd84699bfb3c1c23846e15d0d9a94866064e

scilab/modules/graphics/macros/histplot.sci

index 7dc096b..14a5092 100644 (file)
@@ -48,6 +48,8 @@ function [y, ind] = histplot(n,data,style,strf,leg,rect,nax,logflag,frameflag,ax
     //
     [lhs, rhs] = argn()
 
+    y = [];
+    ind = [];
     if rhs == 0 then   // demo
         histplot([-4.5:0.25:4.5],rand(1,20000,"n"),style=2,axesflag=1,..
         frameflag=1,rect=[-4.5 0 4.5 0.47]);