From: John H. <jd...@gm...> - 2009-04-29 03:09:21
|
On Tue, Apr 28, 2009 at 9:52 PM, Thomas Robitaille < tho...@gm...> wrote: > Hi, > > I am using the savefig method to save plots - however, I am finding > that the font size is systematically larger in the saved images than > in the WxAgg window. It seems that text is ~30% larger in PNG and PDF > files compared to the WxAgg display (relative to the axes box size). > This can be a little frustrating, as in some cases it can lead to > label overlap in the PNG file, when the displayed version looked fine. > The following script produces a PNG and a PDF file in which the font > size is ~30% larger than in the WxAgg display. > If you want the relative fontsizes in the figure window and saved figure to agree, pass the same "dpi" to the figure command and savefig command. JDH |