title: How to make axes fontsize in subplots similar in matplotlib?
body: <p>I have plotted a group of 4 box-plots with matplotlib and I have used different ways to make axes font-size and shape similar but one of the subplots has a different shape. I do not know how to fix it. I have put my result here. I used <code>rcParams</code> also <code>font-size</code> in each sub-plot but none of them were a solution to this problem. How to make all of the axis font sizes similar in terms of shape??I know that it would be better to define a reproducible question but I was not sure in which part I made a mistake that's why I have written my code here. The code is below:
  <a href="https://i.stack.imgur.com/Q7G3v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q7G3v.png" alt="enter image description here" /></a></p>
  <pre><code>import os
  import numpy as np
  import matplotlib.pyplot as plt
  import pylab
  import matplotlib as mpl
  import pandas as pd
  from matplotlib import cm
  from matplotlib import rcParams
  fig, axs = plt.subplots(2, 2,sharex=True,sharey=True)
  
  plt.rcParams.update({'font.size': 20})
  root = r'C:\Users\Master Candidate\Desktop\New folder\Desktop\Out\NEW SCENARIO\Intersection\Beta 10\intersection'
  xx=[]
  percentage=[]
  labels = []
  gg=[]
  my_list = os.listdir(root)
  my_list =  [file for file in sorted(my_list) if os.path.isdir(os.path.join(root, file))]
  my_list= sorted(my_list)
  percetanges = []
  for directory in my_list:
      CASES = [file for file in os.listdir(os.path.join(root, directory)) if file.startswith('config')]   
      if len(CASES)==0:
          continue
      CASES=sorted(CASES)    
      percentage=[]   
      for filename in CASES:        
          with open(os.path.join(root, directory,filename), &quot;r&quot;) as file: 
              lines = file.readlines()
              x = [float(line.split()[0]) for line in lines]
              y = [float(line.split()[1]) for line in lines]
              g = np.linspace(min(y),max(y),100)
              h = min(y)+6
              t = max(y)-6
              xx=[]
              for i in range(1,len(x)):
                  if (y[i] &lt; h or y[i] &gt; t):
                      xx.append(x[i])
              percent = len(xx)/len(y)
          percentage.append(percent)       
      labels.append(directory)    
      labels=sorted(labels)
      percetanges.append(percentage)
  for i, x in enumerate(percetanges):
      axs[0, 0].boxplot(x,positions=[i],whis=0.001,widths = 0.6)
  plt.xticks(np.arange(len(labels)),labels)
  plt.grid()
  plt.ylim((0,1))
  ...
  the same strategy for the rest of 3 subplots
  </code></pre>
  <p>At the end of the code, I finalize the procedure with saving. I mean the effort that you see above is repeated for each subplot and I do not do any thing else</p>