Does anybody have a good method for preserving quality and transparancy of eps images when going from matplotlib to latex to pdf? I can only preserve the transparency if I save as png and then convert to eps but then I lose quality. If I save as eps directly, all my patches are opaque despite the alpha values.
Thanks,
The postscript format does not support transparency. This is not a
matplotlib limitation but a postscript limitation. The best solution
is to save your matplotlib figures as pdf, which is also a vector
format but which does support transparency, and then use pdflatex
JDH
···
On Mon, Aug 31, 2009 at 1:04 PM, Chuck Pepe-Ranney<cpepera@...2681...> wrote:
Does anybody have a good method for preserving quality and transparancy of
eps images when going from matplotlib to latex to pdf? I can only preserve
the transparency if I save as png and then convert to eps but then I lose
quality. If I save as eps directly, all my patches are opaque despite the
alpha values.
Thanks, I guess my problem is that I am using the latex prosper package to make presentation slides but I cannot compile prosper documents with pdflatex (see here). Sorry, I see that this is not a matplotlib specific question so I will try to find a solution somewhere else.
···
On Mon, Aug 31, 2009 at 12:10 PM, John Hunter <jdh2358@…287…> wrote:
On Mon, Aug 31, 2009 at 1:04 PM, Chuck Pepe-Ranney<cpepera@…2681…> wrote:
Does anybody have a good method for preserving quality and transparancy of
eps images when going from matplotlib to latex to pdf? I can only preserve
the transparency if I save as png and then convert to eps but then I lose
quality. If I save as eps directly, all my patches are opaque despite the
alpha values.
The postscript format does not support transparency. This is not a
matplotlib limitation but a postscript limitation. The best solution
is to save your matplotlib figures as pdf, which is also a vector
format but which does support transparency, and then use pdflatex
JDH
–
Chuck Pepe-Ranney
Spear Lab
Colorado School of Mines
Work: (303)384-2477
Cell: (575)313-0993