I saw a long time ago a function that changed all text sizes to same in matplotlib. Now I can't find it anywhere. It was a simple one (or two) liner like:
for item in pylab.gca(): item.getLabel().setSize(10)
How should I do the above? The above is just pseudocode, but the idea is to change x and y labels, legends, titles, everything.
EDIT: ...inside one figure (object). I want the text size to be dependent on the figure width. The global font.size changes this for all figures? and I think it cannot be applied dynamically (settings are read only before the figure is created)?
EDIT 2: I tested the font.size = 22
method. It has some weird behavior if you run it after e.g. legend(). The text vertical spaces are not updated. So, it should be something like getText().setTextSize().