title: How to change all text sizes in figure when using python matplotlib?
body: <p>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:</p>
  
  <pre><code>for item in pylab.gca(): item.getLabel().setSize(10)
  </code></pre>
  
  <p>How should I do the above? The above is just pseudocode, but the idea is to change x and y labels, legends, titles, everything. </p>
  
  <p><strong>EDIT</strong>: ...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)?</p>
  
  <p><strong>EDIT 2</strong>: I tested the <code>font.size = 22</code> 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().</p>