[Scilab-users] ?==?utf-8?q? xtitle hides figure cintent
Antoine Monmayrant
amonmayr at laas.fr
Tue Mar 17 03:37:30 CET 2020
Hello Jens,
I'm sorry, I cannot try your code on scilab-5.5.2 : I just downloaded and installed it but it segfaults whenever using graphics (ie only scilab-cli works).
BTW, should I report this or development/bug fixes are over on 5.5.2?
If I remember correctly, updating graphics content and properties in a loop was a bit of a problem with 5.5.2 with some race conditions.
Results depended on the timing and for example something that worked OK when selecting + Ctrl+E in the editor was not behaving the same when using F5!
In particular, I had different results when outputting to a file (ie png driver or equivalent) or to an interactive plot.
Here are a couple of thinks to try that I had to resort to with 5.5.2:
- try to run your code by using selection + Ctrl+E, maybe by running small chunks at a time. If you get the intended results, it confirms you are facing a race condition.
- try different syntaxes that should be equivalent like fig.children.x_label.text='foo' instead of xtitle('foo') or fig.visible='on' instead of set(fig,'visible','on').
- add some pauses, ie sleep(10) between some of the graphics changes.
- try again: like repeat the set(fig,'visible','on'); twice.
Hope it helps, let us know whether it works or not.
Cheers,
Antoine
Le Lundi, Mars 16, 2020 22:46 CET, Jens Simon Strom <j.s.strom at hslmg.de> a écrit:
> Hallo Scilab family,
>
> After two decades of using Scilab I was not able to fix the following
> problem.
>
> fig=figure('visible','off');
> plot(0:5,0:5)
> //xtitle('xtitle hides the figure content.')
> set(fig,'visible','on'); The script does what I expect. However when
> uncommenting xtitle the figure is blank (Version 5.5.2*). What can I do?
> The background of this question is a script which creates some 10
> figures which are filled with polylines in a loop. Whithout the visible
> off/on there is a nervous flicker of graphics which I want to avoid.
> Butxtitle is a must. *) I cannat go to Version 6 because most of my
> earlier scripts would not run. Regards Jens
>
More information about the users
mailing list