[Scilab-users] Bitmap export

Stefan Du Rietz sdr at durietz.se
Fri Jan 17 00:42:39 CET 2014


On 2014-01-17 00:33, Stefan Du Rietz wrote:
--------------------
> On 2014-01-17 00:20, Stefan Du Rietz wrote:
> --------------------
>> On 2014-01-16 23:13, Antoine Monmayrant wrote:
>> --------------------
>>>
>>> Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz <sdr at durietz.se>
>>> a écrit:
>>>
>>>> Hi Calixte,
>>>> I would rather not, because there is no other problem with the Linux
>>>> driver and I remember other problems with the proprietary driver
>>>> (besides that it is proprietary ...). And why is the figure OK if
>>>> there is an error in the driver? It is only after the export that the
>>>> error shows up!
>>>
>>> Hi Stefan,
>>>
>>> Random idea again (previous one was not helping you much): did you
>>> try to directly write your bitmap without plotting in a figure:
>>>
>>> driver('PNG');
>>> xinit('mypngfile.png');
>>> plot3d();
>>> xend();
>>> driver('X11');
>>>
>>> Is the problem still there?
>>>
>>> Antoine
>>>>
>>>> /Stefan
>>>>
>>>>
>> 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

>>
>>>> On 2014-01-13 10:52, Calixte Denizet wrote:
>>>> --------------------
>>>>> Weird... imho it is a problem with the driver of your GC.
>>>>> Could you try to install proprietary driver please ?
>>>>>
>>>>> Regards
>>>>>
>>>>> Calixte
>>>>>
>>>>> On 13/01/2014 10:50, Stefan Du Rietz wrote:
>>>>>> Hi Calixte,
>>>>>> here you are!
>>>>>>
>>>>>> Regards /Stefan
>>>>>>
>>>>>> On 2014-01-13 10:43, Calixte Denizet wrote:
>>>>>> --------------------
>>>>>>> Hi Stefan,
>>>>>>>
>>>>>>> Could you attach the guilty picture please ?
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> Calixte
>>>>>>>
>>>>>>> On 13/01/2014 10:37, Stefan Du Rietz wrote:
>>>>>>>> On 2014-01-13 09:16, Antoine Monmayrant wrote:
>>>>>>>> --------------------
>>>>>>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote:
>>>>>>>>>> Hi,
>>>>>>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM,
>>>>>>>>>> BMP)
>>>>>>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees
>>>>>>>>>> clockwise and is divided in two parts. Has anybody else
>>>>>>>>>> experienced
>>>>>>>>>> that?
>>>>>>>>>>
>>>>>>>>>> Regards /Stefan
>>>>>>>>>> _______________________________________________
>>>>>>>>>> users mailing list
>>>>>>>>>> users at lists.scilab.org
>>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users
>>>>>>>>> Hi Stefan,
>>>>>>>>>
>>>>>>>>> Could you send us a small test script that produces the bogus
>>>>>>>>> plot, so
>>>>>>>>> we can give it a try?
>>>>>>>>> Do you have a huge scaling factor between x and y?
>>>>>>>>> Like mean(y)<mean(x)*10^-4 ?
>>>>>>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the
>>>>>>>>> inverse
>>>>>>>>> of the y/x ratio).
>>>>>>>>> There use to be a bug that produces this slant, but it is
>>>>>>>>> corrected
>>>>>>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 .
>>>>>>>>>
>>>>>>>>> Hope it helps,
>>>>>>>>>
>>>>>>>>> Antoine
>>>>>>>>> _______________________________________________
>>>>>>>>> users mailing list
>>>>>>>>> users at lists.scilab.org
>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users
>>>>>>>>>
>>>>>>>> Hi Antoine,
>>>>>>>> there is nothing wrong with the plot, only with the exported
>>>>>>>> file!
>>>>>>>> And even that is OK when exported from Windows 7.
>>>>>>>>
>>>>>>>> x = [0:0.05*%pi:2*%pi]';
>>>>>>>> f = scf();
>>>>>>>> plot2d(x, sin(x))
>>>>>>>> xgrid()
>>>>>>>>
>>>>>>>> Now, from the figure menu: File > Export to ... > PNG (or any
>>>>>>>> other)
>>>>>>>>
>>>>>>>> File > Vectorial export ... works OK.
>>>>>>>>
>>>>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>





More information about the users mailing list