[Scilab-users] Batch to export a graph to PNG automatically

Samuel Gougeon sgougeon at free.fr
Sun Oct 27 13:06:26 CET 2013


Hello Denis,
I am using Scilab 5.5.0-b1 on win_x64. This error does not occur with 
it. The PS file is well generated (but the figure is at the bottom of 
the page).
Regards
Samuel

Le 27/10/2013 11:59, CRETE Denis a écrit :
>
> Hello,
>
> I tried the code given in example for the function "driver", on a PC 
> with Windows XP and Scilab 5.5.0: the report has a warning message 
> given below.
>
> -->current_driver = driver()
>
> current_driver  =
>
> Rec
>
> -->driver("Pos")
>
> ans  =
>
>  Rec
>
> -->xinit(TMPDIR+"/foo.ps")
>
> -->plot2d()
>
> -->xend()
>
> Warning !!!
>
> Scilab has found a critical error (Unknown exception)
>
> with "xend" function.
>
> Save your data and restart Scilab.
>
> !--error 1
>
> Affectation erronée.
>
> Now, I issue the "driver" command twice:
>
> -->current_driver = driver()
>
> current_driver  =
>
> Rec
>
> -->driver("Pos")
>
> ans  =
>
>  Rec
>
> -->driver("Pos")
>
> ans  =
>
>  Pos
>
> -->xinit(TMPDIR+"/foo.ps")
>
> -->plot2d()
>
> -->xend()
>
> and I get the graph in ps format correctly in TMPDIR. Is this to be 
> correlated to the behaviour that I observed (only with Scilab) when I 
> try to switch between windows with Alt+Tab (I have to repeat the 
> command twice) ? Should we consider this a bug ?
>
> Best regards
>
> Denis
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20131027/66015d04/attachment.htm>


More information about the users mailing list