On Tuesday 26 July 2005 10:14 pm, John Hunter wrote:
> >>>>> "Darren" == Darren Dale <dd55@...> writes:
> Darren> On Tuesday 26 July 2005 01:11 pm, Mark Bakker wrote:
> >> I have the same experience that eps files seem to be much
> >> larger than you expect, or than produced by other programs for
> >> similar plots. Is it maybe because fonts are embedded in the
> >> eps file? Anybody know?
> Darren> It is because the fonts are embedded in the eps file.
> As Darren notes,, it is the font embedding. If this bothers you, you
> have two options. Set one of the following to True in your matplotlib
> rc file
> # use of afm fonts -- breaks mathtext but results in small files
> ps.useafm : False
> # Experimental: use ghostscript to distill ps output - may yield smaller
> files ps.usedistiller : False
> For the latter you will need a recent version of ghostscript.
Another option you might try, which is not built in to matplotlib, is to
create a pdf using ps2pdf (included with ghostscript), and then convert back
using pdftops (included with xpdf). I know it seems dumb, but if you use
mpl's tex/latex support, this is the best method for cleaning the files up so
they can be embedded in another document.