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
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 <czunigaz@...9...> 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
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
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 <czunigaz@...9...> 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
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
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
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 <czunigaz@...9...> wrote:
Hello JJ,
Thanks so much for replying..
I have attached the "eps" file.
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 <czunigaz@...9...> 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
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
I stopped using the "round" join style option from matplotlib as you
suggested by writing:
plot(x,y,ls='-',lw=3,solid_joinstyle='bevel')
I did not have to change the rc.
Thanks a bunch!
c
Jae-Joon Lee wrote:
···
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
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 <czunigaz@...9...> wrote:
Hello JJ,
Thanks so much for replying..
I have attached the "eps" file.
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 <czunigaz@...9...> 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
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options
------------------------------------------------------------------------------
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 matplotlib-users List Signup and Options