From 566bcaff7d5827cf599620c68534a5162847e15b Mon Sep 17 00:00:00 2001 From: Bruno JOFRET Date: Tue, 25 Mar 2014 08:49:06 +0100 Subject: [PATCH] Fix BARXY simulation : must use uid instead of label + increase speed Change-Id: I92027e4927bfdb438f707aa1e45142b07bdd9426 --- .../scicos_blocks/macros/Sinks/BARXY_sim.sci | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scilab/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci b/scilab/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci index e66750e..dfd1c29 100644 --- a/scilab/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci +++ b/scilab/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci @@ -15,17 +15,16 @@ function block=BARXY_sim(block,flag) if flag == 4 | flag == 6 // Initialisation || Re-Init // if already exists (stopped) then reuse - f = findobj("Tag", block.label); + f = findobj("Tag", block.uid); if f == [] then - f = figure("Tag", block.label, "Figure_name", "BARXY"); + f = figure("Tag", block.uid, "Figure_name", "BARXY"); else scf(f); + clf(); end - // Create an empty figure without Menu's nor toolbar - clf(); + f.background = -2; a=gca(); - drawlater(); a.data_bounds = block.rpar'; a.isoview = "on"; u1=block.inptr(1); @@ -41,12 +40,11 @@ function block=BARXY_sim(block,flag) u1=block.inptr(1); u2=block.inptr(2); - f = findobj("Tag", block.label); - a = f.children; + f = findobj("Tag", block.uid); - drawlater() + a = f.children; a.children(1).data = [u1, u2] - drawnow(); + end endfunction \ No newline at end of file -- 1.7.9.5