[Scilab-users] Scilab figure operations and console program flow
Serge Steer
Serge.Steer at inria.fr
Mon Sep 24 14:02:50 CEST 2012
You are right, the input function is blocks Scilab waiting for the
response, a workaround is to use a menu instead of input.
Note that the datatip toggle menu still exists in the graphic window
menu bar as well as in the toolbar
Serge Steer
Le 22/09/2012 16:29, Rafael Guerra a écrit :
> Scilab's figure operations are difficult to synchronize with Scilab program
> flows.
> See the simple code sample below, which uses datatips.
> This type of issue also applies to other figure operations such as zooming,
> etc.
> Is there a workaround to overcome this behavior in Scilab programs?
> (this seems to be caused by the input function which halts everything on the
> graphic windows)
>
> Thanks and regards
> Rafael
>
> // FIGURE OPERATIONS AND SCILAB PROGRAM FLOW
> isdatatip=%T;
> t=0:0.002:1; s=sin(2*%pi*10*t);
> isdisplay=%T;
> clf();
> while isdisplay
> plot(t,s);
> str=input("(Enter 0) to exit or (1) to toggle data tips ON/OFF: ",
> "string");
> if str=="1" then
> if isdatatip then
> datatipManagerMode("off"); isdatatip=%F;
> else
> datatipManagerMode("on"); isdatatip=%T;
> end
> elseif str=="0" then
> isdisplay=%F;
> end
> end
> //
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Scilab-figure-operations-and-console-program-flow-tp4024871.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
More information about the users
mailing list