Hello,

Le 01/04/2016 01:38, [email protected] a écrit :
Samuel,

Thanks. I had to do it in two steps:

     f = gcf();
     f.closerequestfcn="exit(0)";
.
Yes, this works with Scilab 5 and Scilab 6.
otherwise I get:

     gcf().closerequestfcn="exit(0)";
          !--error 2
     Invalid factor.
.
Only since Scilab 6


The focus still returns to the command line console pushing the graphics window 
into the background and meaning I have to go looking for it to see the plot;
Against this, you might use show_window(..) if it were not bugged. Since apparently it is a hard bug difficult to fix
(documented since 2012 @ http://bugzilla.scilab.org/11363), you may use
gcf().visible = "on"
(or f = gcf(); f.visible = "on";)
to bring the window to the foreground whether it is not iconified.


but when I close it the console exits back to the OS.

Next problem, that should probably be a new thread: How to avoid the 
Singularity of log function from preventing the script completing if the data 
contains zeros?

I'm doing:

     plot( log10( a ), b );
k = find(a>0);
plot2d("ln",a(k),b(k))

Samuel

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to