From: Christian K. <ck...@ho...> - 2005-12-07 13:41:11
|
Darren Dale wrote: > On Tuesday 06 December 2005 10:03, Christian Kristukat wrote: > >>Darren Dale wrote: >> >>>On Tuesday 06 December 2005 09:10, Alex Gontmakher wrote: >>> >>>>Hi, >>>> >>>>I'm trying to use matplotlib solely for my plotting needs. >>>>Problem is, the fonts are embedded in each EPS file, and >>>>when I import several plots (I have tens of them...) into a >>>>single Latex, the resulting file is HUGE. >>>> >>>>Any suggestions? >>> >>>There are currently two options: you can either set ps.useafm = True, or >>>you can set text.usetex = True in your rc settings. Since you are >>>importing figures into latex, I suggest the usetex option. That way, your >>>figure fonts can be the same as your text fonts. You'll take a bit of a >>>speed hit with the latter option, but in my opinion, its the only way to >>>go for generating plots for publication. >> >>When using tex for font rendering I noticed that parts of the text are not >>converted to polygons but embedded as bitmaps. That makes the files big >>again. Do you now how to avoid that? E.g. using the r'$C_{12}$ will produce >>two images for the numbers and a polygon for the 'C'. > > > I made a wiki entry a while back about how to work around this problem, but it > looks like someone deleted it in mid-November, and I dont have a backup copy. > My solution requires ghostview and xpdf, which is why we dont include it in > mpl by default. Thanks! Has using pdflatex for tex labels been considered? Or is that too much dependency? It could possibly even be faster. Christian |