From: Randewijk P-J <pjr...@su...> - 2005-12-09 12:40:16
|
Dear All, I want to change the fontsize used for my legends. Analogues to the 'title', 'figtext', 'xlabel' and 'ylabel' commands, it would have been nice to write: legend(('...'),loc=3D'...',fontsize=3D10) Unfortunately this is not (yet) implemented... Time Out: =3D=3D=3D=3D=3D=3D=3D=3D=3D Can I make a RFC for this feature to be added...? And the same for the 'axis' command, e.g. 'axis([...],fontsize=3D10)', would also be a nice addition to mpl. =3D=3D=3D=3D=3D=3D=3D=3D=3D Back to the fontsize issue: In 'legend.py': "... def __init__(self, parent, handles, labels, loc, isaxes=3DTrue, numpoints =3D 4, # the number of points in the legend line prop =3D FontProperties(size=3D'smaller'), pad =3D 0.2, # the fractional whitespace = inside the legend border markerscale =3D 0.6, # the relative size of legend markers vs. original # the following dimensions are in axes coords labelsep =3D 0.005, # the vertical space between = the legend entries handlelen =3D 0.05, # the length of the legend = lines handletextsep =3D 0.02, # the space between the legend line and legend text axespad =3D 0.02, # the border between the axes = and legend edge shadow=3DFalse, ): ..." The font is defined as 'smaller', but 'smaller' than what...? It is not affected (imho) by either of the following settings in my 'matplotlibrc' file: "... font.size : 12 ... axes.labelsize : 16 ... tick.labelsize : 10 ..." Kind regards, Peter-Jan |