When I open your eps file with ghostscript, I can see the problem. I'm about 95% sure that this is related to the ghostscript not correctly rendering the line. In your ghostscript viewer, turn off "antialiasing" then you will see straight line (of course w/o antialiasing).
This seems to be a known problem that has recently been fixed http://www.ghostscript.com/doc/current/Changes.htm (see the entry of 2010-04-07T13:13:57.741241Z Robin Watts) It only happens when you use "round" join style. So, change your rc file (or any other setting) not to use "round" style. In case you must use "round" style, I guess you'd better upgrade your ghostscript. Regards, -JJ On Mon, Dec 20, 2010 at 8:53 AM, andes <czuni...@yahoo.com> wrote: > > Hello JJ, > > Thanks so much for replying.. > I have attached the "eps" file. > > http://old.nabble.com/file/p30495318/figeps.eps figeps.eps > > c > > > > Jae-Joon Lee wrote: >> >> Can you post your eps file? >> This may be related to the ps rasterizer you're using. >> Regards, >> >> -JJ >> >> >> On Thu, Dec 16, 2010 at 1:46 AM, andes <czuni...@yahoo.com> wrote: >>> >>> hello, >>> >>> When I save as an "eps" a figure created by matplotlib I face the problem >>> that the inclined lines in the plot appear to be jagged when I open the >>> "eps" (please see figure below). This problem doesn't appear when I save >>> the >>> figure as a pdf or png. Do you you know if there is a simple solution to >>> this problem that I can implement in my example code (shown below)? >>> I would greatly appreciate any advice. >>> #----example code >>> from numpy import * >>> from pylab import * >>> x=linspace(-1,1,100) >>> y=x >>> figure(1) >>> p1,=plot(x,y,lw=3) >>> savefig("figeps.eps") >>> #---jagged line in plot >>> http://old.nabble.com/file/p30465591/jagged.png >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/jagged-line-in-eps-from-matplitlib-tp30465591p30465591.html >>> Sent from the matplotlib - users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Lotusphere 2011 >>> Register now for Lotusphere 2011 and learn how >>> to connect the dots, take your collaborative environment >>> to the next level, and enter the era of Social Business. >>> http://p.sf.net/sfu/lotusphere-d2d >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Matplotlib-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> ------------------------------------------------------------------------------ >> Lotusphere 2011 >> Register now for Lotusphere 2011 and learn how >> to connect the dots, take your collaborative environment >> to the next level, and enter the era of Social Business. >> http://p.sf.net/sfu/lotusphere-d2d >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > -- > View this message in context: > http://old.nabble.com/jagged-line-in-eps-from-matplitlib-tp30465591p30495318.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users