[scilab-Users] many plots

Stéphane Mottelet stephane.mottelet at utc.fr
Thu Sep 23 11:25:45 CEST 2010


Le 23/09/2010 11:16, Sylvestre Ledru a écrit :
> Le jeudi 23 septembre 2010 à 11:12 +0200, Stéphane Mottelet a écrit :
>    
>> Le 23/09/2010 10:51, Sylvestre Ledru a écrit :
>>      
>>> Le jeudi 23 septembre 2010 à 10:47 +0200, StŽéphane Mottelet a écrit :
>>>
>>>        
>>>> David PICARD a écrit :
>>>>
>>>>          
>>>>>    Hi,
>>>>>
>>>>> I have to make about 100 2D plots, and I'd like to send them to PNG
>>>>> images instead of creating 100 windows on my desktop. How should I do
>>>>> that ?
>>>>>
>>>>> David.
>>>>>
>>>>>
>>>>>
>>>>>            
>>>> Hi,
>>>>
>>>> actuallly, since version 5, Scilab need to create the graphics on screen
>>>> before
>>>> exporting them, even by using the driver/xinit/xend stuff. If you need
>>>> a "silent" export, use Scilab 4.
>>>>
>>>>          
>>> Actually, under GNU/Linux (and probably Mac OS X), you can manage this
>>> through Xvfb:
>>> http://en.wikipedia.org/wiki/Xvfb
>>>
>>> Sylvestre
>>>
>>>
>>>
>>>        
>> Although Xvfb accepts the following syntax
>>
>> Xvfb :100 -ac -extension GLX&
>>
>> it does not seem to actually implement any GLX support :
>>
>> scilab -display :100 -e "plot;xs2png(0,'toto.png');quit"
>>
>> (process:1947): Gtk-WARNING **: Locale not supported by C library.
>>       Using the fallback 'C' locale.
>> Xlib:  extension "GLX" missing on display ":100.0".
>> Xlib:  extension "GLX" missing on display ":100.0".
>> Xlib:  extension "GLX" missing on display ":100.0".
>> Xlib:  extension "GLX" missing on display ":100.0".
>> An error occurred when Scilab tried to open a Canvas: glXGetConfig
>> failed: error code GLX_NO_EXTENSION
>>      
> Well, I don't know why it is failing and I haven't tried this myself but
> I have a few reports from users telling me that this solution is
> working.
>
> Sylvestre
>
>
>    
Ok, I got it, there's no need for switches :

Xvfb &

but there some tweeking to do with color depth.

S.



More information about the users mailing list