title: Matplotlib. Can't change the ticks on second y axis
body: <p>I am drawing a plot with two y-axes, but I can't find a way to modify the ticks on the second y-axis. I get no errors, but the ticks on the right don't change at all.</p>
  <pre><code>import matplotlib.pyplot as plt
  
  x = [x for x in range(11)]
  y1 = [x for x in range(0, 101, 10)]
  y2 = [x for x in range(20, 31, 1)]
  
  fig, ax1 = plt.subplots()
  ax2 = plt.twinx()
  
  ax1.plot(x, y1)
  ax2.plot(x, y2)
  
  for tick in ax1.yaxis.get_major_ticks():
          tick.label.set_fontsize(30)
          tick.label.set_color('purple')
          
  for tick in ax2.yaxis.get_major_ticks():
          tick.label.set_fontsize(30)
          tick.label.set_color('green')
          
  plt.show()
  </code></pre>