relative font sizes

It appears that relative font sizing is broken in svn. It used to be possible
to do this:

from matplotlib import rcParams
rcParams['font.size']=6
rcParams['xtick.labelsize']='small'
import pylab
pylab.plot([1,2])
pylab.text(0.1, 1.75, 'look how small I am compared to the ticks')
pylab.show()

and any of the various text sizes like ticklabels, axis labels, titles, etc,
would be sized relative to font.size. It looks like relative sizes are no
longer scaled to font.size, but some fixed value. Does anyone know what has
changed?

Thanks,
Darren

This seems to be related to the change to pickle cache the entire FontManager class. If you delete ~/.matplotlibrc/fontManager.cache, the font.size setting takes effect.

I made a small change in r3861 that should fix this problem.

Cheers,
Mike

Darren Dale wrote:

ยทยทยท

It appears that relative font sizing is broken in svn. It used to be possible to do this:

from matplotlib import rcParams
rcParams['font.size']=6
rcParams['xtick.labelsize']='small'
import pylab
pylab.plot([1,2])
pylab.text(0.1, 1.75, 'look how small I am compared to the ticks')
pylab.show()

and any of the various text sizes like ticklabels, axis labels, titles, etc, would be sized relative to font.size. It looks like relative sizes are no longer scaled to font.size, but some fixed value. Does anyone know what has changed?

Thanks,
Darren

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--
Michael Droettboom
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA