On Tue, Apr 28, 2009 at 11:09 PM, John Hunter <jdh2...@gmail.com> wrote: > 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.
John, I thought the font size (which is specified in points) is independent of dpi, i.e., font size in "pixel" actually scales with the dpi. I think it should be filed as a bug if the relative font size depends on the dpi. Anyhow, I just did a quick test and the (relative) font size does not seem to vary with dpi. Thomas, What version of mpl are you using? With the mpl from the svn trunk, I don't see any significant change as you described. The WxAgg figure and the png output are actually drawn by an identical backend, so there should be no significant difference. There can be some subtle difference due to different dpi, but I don't see a difference as large as 30%. Can you post a some sample images? i.e., a screenshot of WxAgg figure and the png output. I can see that the text in pdf output occupies a bit larger area than png (when usetex=False), but, to me, this seems to be due to different amount of kernings (it seems that no kerning is applied for pdf text) instead of different font size. So, can you first check if the difference goes away when you use same dpi as John suggested? And if that is the case, can you try the latest svn and check if the relative font size still depends on the dpi? Regards, -JJ ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users