title: How can I change the font size of ticks of axes object in matplotlib
body: <p>I have a figure I added subfigure to (inset). I have used:</p>
  
  <pre><code>fig = plt.figure()
  ax = fig.add_subplot(111)
  subA = fig.add_axes([0.4,0.14,0.2,0.2])
  </code></pre>
  
  <p>I now want to change the <code>xtick</code> font size of the subfigure. I tried some naive approach such as</p>
  
  <pre><code>subA.get_xaxis().get_xticks().set_fontsize(10)
  </code></pre>
  
  <p>without any luck. </p>
  
  <p>How can I do this then?</p>