title: Axis tick labels disappear if I change font size in boxplot - matplotlib
body: <p>I'm trying to change the font size of the tick lables on the y-axis using <code>ax.set_yticklabels(labels=ax.get_yticklabels(), Fontsize=8)</code></p>
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  fig = plt.figure()
  ax  = fig.add_subplot(111)
  
  y = np.linspace(0, 100)
  x_1 = y**2
  x_2 = y**2 - y
  
  my_labels = ['x_1', 'x_2']
  
  my_data = [x_1, x_2]
  
  my_plot = ax.boxplot(my_data, whis = 1.5, labels=my_labels, showfliers=False, patch_artist=True)
  ax.set_xticklabels(labels=my_labels, rotation = 45, Fontsize=12)
  ax.set_yticklabels(labels=ax.get_yticklabels(), Fontsize=8)
  
  my_plot['boxes'][0].set_facecolor('yellow')
  my_plot['boxes'][1].set_facecolor('cyan')
  
  plt.show()
  </code></pre>
  <p>This gives me,</p>
  <p><a href="https://i.stack.imgur.com/kiFRl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kiFRl.png" alt="enter image description here" /></a></p>
  <p>As can be seen the y-axis labels are missing. If I comment out <code>ax.set_yticklabels(labels=ax.get_yticklabels(), Fontsize=8)</code> I get,</p>
  <p><a href="https://i.stack.imgur.com/c09sS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c09sS.png" alt="enter image description here" /></a></p>
  <p>So, how do I change the y-axis font size?</p>