Just for the record, I will put the suggestion done in my second comment here as a possible answer as well. This may not always work, but a test shows good results:
import pylab as pl
pl.figure(figsize=(7, 7)) # Don't create a humongous figure
pl.annotate(..., fontsize=1, ...) # probably need the annotate line *before* savefig
pl.savefig('test.pdf', format='pdf') # no need for DPI setting, assuming the fonts and figures are all vector based
It would appear even fractional fontsizes (e.g. fontsize=0.1
) works.
Your mileage may vary: I have tested this only with the PDF backend, not the EPS one.
Also: I have left out the DPI setting. When printing this on a high resolution printer, you may need it again. Then again, you shouldn't, as this likely is a printer setting instead: how the printer rasterizes your (vector) PDF image. I simply don't know if these kind of "hints" can be coded into postscript/PDF.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…