[Scilab-users] Bitmap export

Stefan Du Rietz sdr at durietz.se
Mon Jan 20 19:19:34 CET 2014


Hi Calixte,
thank you very much for your comprehensive reply! Now I understand why 
I must either install the proprietary driver (beware!) or use the 
vectorial export. I will probably choose the latter when I want to 
export a figure to be able to use it at my web site.

Best regards
Stefan


On 2014-01-20 16:15, Calixte Denizet wrote:
--------------------
> Hi Stefan,
>
> Few comments:
> i) driver(...);xinit(...);...xend(); implies a vectorial export: all
> the scene is completly drawn vectorialy (so the graphic card driver is
> not implied in the draw)
> ii) xs2png(0,...): a memory dump is done and the bitmap is converted
> into PNG. The GC driver is called to retrieve the data and it seems
> that this kind of bug is typical to Ubuntu with free driver... the
> only workaround I know (for the moment ;)) is to switch to the
> proprietary driver.
>
> Calixte
>
> On 17/01/2014 00:42, Stefan Du Rietz wrote:
>>>> Hi Antoine,
>>>> are we supposed to reply above as earlier or not ;-(
>>>>
>>>> When I did as you proposed:
>>>>
>>>> x = [0:0.05*%pi:2*%pi]';
>>>> f = scf(1);
>>>> driver('PNG');
>>>> xinit('gridtest.png');
>>>> plot2d(x, sin(x))
>>>> xgrid()
>>>> xend();
>>>> driver('X11');
>>>>
>>>> it was OK!
>>>>
>>>> Regards /Stefan
>>>>
>>> And, of course, thank you!
>>>
>>> Regards /Stefan
>>>
>> So, Calixte, it was not the graphics driver, was it? Shall I report
>> a bug?
>>
>> Regards /Stefan
>
>




More information about the users mailing list