[scilab-Users] Beginner problem with xs2pdf

Dean Parsons dean.parsons at att.net
Fri Sep 24 07:11:21 CEST 2010


Calixte,

Thanks so much for your prompt response. Great to hear about the rewrite.  I 
hope I didn't sound too negative in my last email. I appreciate so much the 
work you and your team are doing. Scilab is a *wonderful* tool and has made 
it possible for me to continue my education at home very inexpensively. You 
guys are great! One question. Is "Scilab" pronounced like "sky lab" or like 
"sigh lab"? I've wondered about this for many months...

Dean

----- Original Message ----- 
From: "Calixte Denizet" <calixte at contrib.scilab.org>
To: <users at lists.scilab.org>
Sent: Thursday, September 23, 2010 5:16 PM
Subject: Re: [scilab-Users] Beginner problem with xs2pdf


> Hello Dean,
>
> Le jeudi 23 septembre 2010 à 12:28 -0500, Dean Parsons a écrit :
>> Dear All,
>>
>> I have had this same problem (as described by Ismael below) with the 
>> xs2svg
>> routine. I believe the problem is in the routine, and not due to the
>> graphics card driver because I have updated my graphics card driver to 
>> the
>> latest and greatest version and I still have the problem. I have reported
>> this problem in bug # 7512. I am using Windows XP.
>>
>
> It's a problem with the driver of your GC. The library we used to export
> in SVG is gl2ps which used the feedback buffer (fb) of the graphic card.
> This fb is normally used to debug but in gl2ps it's used to send datas
> from the 3D scene to gl2ps to make the conversion. If gl2ps was bugged,
> it would be on all the GC but problems occure only with ATI cards ! I
> had several Nvidia or Intel cards and no problems for me. Have a look at
> this thread on bugzilla: http://bugzilla.scilab.org/show_bug.cgi?id=6692
>
> Graphics module is currently rewrite and when this job will be done,
> we'll rewrite the way to export into SVG (since pdf/ps/eps are generated
> from the SVG in using FOP), you can be sure that we won't use the fb !!
>
> Calixte
>
>> My old graphics card driver is the ATI X1300. My new one is ATI X1300 
>> pro.
>> When I use the old driver with xs2svg in Scilab 5.2.2, Scilab 5.2.2 
>> crashes.
>> The old driver does work OK with Scilab 5.2.0 except that if you use '.' 
>> or
>> 'o' in a plot command, the scilab 5.2.0 console window freezes or locks 
>> up &
>> becomes unresponsive. (I reported this in bug #7482).
>>
>> When I use the new graphics card driver, xs2svg will run on Scilab 5.2.0 
>> &
>> 5.2.2 but the graphic output has the problem Ismael describes below which 
>> I
>> call the "sun ray" or "star burst" problem and which I reported in bug
>> #7512.
>>
>> When I use the new driver with Scilab 5.1 the "sun ray" problem goes 
>> away,
>> but the graphic output has the problem of data appearing in the margin
>> outside of the plot boundaries. This problem is not seen in the Scilab
>> graphics window, but it is seen after loading the .svg image into an svg
>> viewer like Adobe or Inkscape. I call this the "spillover into the 
>> margins"
>> problem and I have reported this in but #7513.
>>
>> It is frustrating to me that no matter which driver I use and no matter
>> which Scilab version I use, there is a problem with exporting svg 
>> graphics.
>> I have not been able to find a problem-free way of exporting svg 
>> graphics. I
>> am hoping that some of these issues may be resolved in a future Scilab
>> release.
>>
>> Dean Parsons
>>
>>
>> ----- Original Message ----- 
>> From: "Calixte Denizet" <calixte at contrib.scilab.org>
>> To: <users at lists.scilab.org>
>> Sent: Thursday, September 23, 2010 10:24 AM
>> Subject: RE: [scilab-Users] Beginner problem with xs2pdf
>>
>>
>> > Le jeudi 23 septembre 2010 à 16:11 +0100, A. Ismael F. Vaz a écrit :
>> >> Dear Antoine,
>> >>
>> >> Thanks again for the prompt reply. Using you code I obtain exactly the
>> >> same
>> >> figure.
>> >>
>> >> I am an one hour user of SciLab, but it clearly looks like a bug in 
>> >> the
>> >> xs2pdf function, and not a video driver problem.
>> >>
>> >> I guess it is because a figure if obtained by plotting line segments
>> >> between
>> >> the provided function points (linear interpolation). Somehow the 
>> >> driver
>> >> (xs2pdf) gets messed with the provided points and from time to time it
>> >> plots
>> >> a line using the first point and not the previous point, which gives 
>> >> the
>> >> figure I had attached in the previous message.
>> >>
>> >
>> > Ismael
>> >
>> > I know very well this kind of bugs and I can confirm this a problem 
>> > with
>> > the driver of your graphic card (probably an ATI). So try to update 
>> > your
>> > driver.
>> >
>> > Calixte
>> >
>> >> Best,
>> >> Ismael
>> >>
>> >> > -----Original Message-----
>> >> > From: Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr]
>> >> > Sent: quinta-feira, 23 de Setembro de 2010 13:00
>> >> > To: users at lists.scilab.org
>> >> > Subject: Re: [scilab-Users] Beginner problem with xs2pdf
>> >> >
>> >> > Le 23/09/2010 12:52, A. Ismael F. Vaz a écrit :
>> >> > > Dear all,
>> >> > >
>> >> > > I was recently made aware of scilab and today was the day
>> >> > to try it out.
>> >> > >
>> >> > > I was trying simple commands and the first ones were
>> >> > >
>> >> > > x=[0:0.01:2*%pi]';
>> >> > > plot(sin(x));
>> >> > >
>> >> > > for a simple plot of the sine function.
>> >> > >
>> >> > > When I exported the plot into a PDF file the plot is
>> >> > somehow strange
>> >> > > as extra lines appears in the plot. I tried the graphic
>> >> > windows menu
>> >> > > to export the plot and also the xs2pdf function, and the
>> >> > same happens.
>> >> > > It also happens when I export to EPS.
>> >> > >
>> >> > > Am I doing something wrong? This is not a good start :(
>> >> > >
>> >> > > SciLab version: 5.2.2 (actually I tried first the 5.3.0-beta-2 and
>> >> > > then
>> >> > > downgraded)
>> >> > > Operating System: Windows XP (updated)
>> >> > >
>> >> > > Best regards,
>> >> > > Ismael Vaz
>> >> > >
>> >> > > P.S. I am attaching the PDF file, but I do not know if it works 
>> >> > > for
>> >> > > this users mail list.
>> >> > >
>> >> > I don't have your problem.
>> >> > I tried:
>> >> >
>> >> > x=[0:0.01:2*%pi]';
>> >> > plot(sin(x));
>> >> > h=gcf();
>> >> > xs2pdf(h,"sine.pdf");
>> >> >
>> >> > and the pdf I got was OK.
>> >> > It sounds like a bug to me.
>> >> > Could you try to run the example above on your machine and
>> >> > see if the problem is still here?
>> >> > If it's the case, it would be nice to fill a bug report.
>> >> >
>> >> > Antoine
>> >> >
>> >> > -- 
>> >> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> >> >
>> >> >   Antoine Monmayrant LAAS - CNRS
>> >> >   7 avenue du Colonel Roche
>> >> >   31077 TOULOUSE
>> >> >   Cedex 4 FRANCE
>> >> >
>> >> >   Tel:+33 5 61 33 64 59
>> >> >
>> >> >   email : antoine.monmayrant at laas.fr
>> >> >   permanent email : antoine.monmayrant at polytechnique.org
>> >> >
>> >> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
> 




More information about the users mailing list