Avoid blinking on plot() (no args) 88/10388/2
Calixte DENIZET [Fri, 1 Feb 2013 15:47:27 +0000 (16:47 +0100)]
Change-Id: I147dd616c3cd266018a95a9f3de4fd62afcf58c4

scilab/modules/graphics/macros/plot.sci

index f64952d..c00d35c 100644 (file)
@@ -17,10 +17,12 @@ function plot(varargin)
 if ~rhs
        //LineSpec and PropertySpec examples:
        t = 0:%pi/20:2*%pi;
+       drawlater();
        subplot(211);
        plot(t,sin(t),'ro-.',t,cos(t),'cya+',t,abs(sin(t)),'--mo');
        subplot(212);
        plot([t ;t],[sin(t) ;cos(t)],'xdat',[1:2]);
+       drawnow();
        return;
 end