[Scilab-users] Bitmap export

Calixte Denizet calixte.denizet at scilab-enterprises.com
Mon Jan 20 19:28:44 CET 2014


And take care: vectorial export of a 3D scene can be slow.

C

On 20/01/2014 19:26, Stefan Du Rietz wrote:
> On 2014-01-20 19:19, Stefan Du Rietz wrote:
> --------------------
>> 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.
>>
> I just want to correct my code lines below:
> f = scf(1);
> should NOT be there, before
> driver('PNG');
> because then it didn't work!
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-- 
Calixte Denizet
Software Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
http://www.scilab-enterprises.com




More information about the users mailing list