[Scilab-users] Scilab figure operations and console program flow
Rafael Guerra
jrafaelbguerra at hotmail.com
Sat Sep 22 16:29:44 CEST 2012
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.
More information about the users
mailing list