From: Robert L. <ro...@le...> - 2005-03-02 09:52:48
|
kristen kaasbjerg wrote: > Hi again > Working with legend I've encountered another problem. > Changing the fontsize in a legend seems to be a little > harder than first assumed. Is there an easy way to do > this?? From the mailing list a couple of days ago... You need to pass in a FontProperties instance that specifies the size you want: prop = FontProperties(size="x-small') size - Either an absolute value of xx-small, x-small, small, medium, large, x-large, xx-large; or a relative value of smaller or larger; or an absolute font size, e.g. 12; or scalable i.e. lgnd = ax.legend((lines, labels, prop = FontProperties(size="x-small'), ..other_params_as_required) Robert PS This looks like something to add to my 'Getting Started' document.... |