title: How to iteratively remove X axis labels from multiple subplots
body: <p>Using seaborn I have created 21 subplots, my code is as follows:</p>
  <pre class="lang-py prettyprint-override"><code>fig, axes = plt.subplots(7, 3, figsize=(25, 25))
  
  fig.suptitle('Workforce Statistics')
  
  sns.lineplot(ax=axes[0, 0], data=dfStaff, x='Month', y='Central functions')
  sns.lineplot(ax=axes[0, 1], data=dfStaff, x='Month', y='Support to ST&amp;T staff')
  sns.lineplot(ax=axes[0, 2], data=dfStaff, x='Month', y='Consultant')
  sns.lineplot(ax=axes[1, 0], data=dfStaff, x='Month', y='Specialty Registrar')
  sns.lineplot(ax=axes[1, 1], data=dfStaff, x='Month', y='Midwives')
  sns.lineplot(ax=axes[1, 2], data=dfStaff, x='Month', y='Managers')
  sns.lineplot(ax=axes[2, 0], data=dfStaff, x='Month', y='Ambulance staff')
  sns.lineplot(ax=axes[2, 1], data=dfStaff, x='Month', y='Support to ambulance staff')
  sns.lineplot(ax=axes[2, 2], data=dfStaff, x='Month', y='Senior managers')
  sns.lineplot(ax=axes[3, 0], data=dfStaff, x='Month', y='Core Training')
  sns.lineplot(ax=axes[3, 1], data=dfStaff, x='Month', y='Specialty Doctor')
  sns.lineplot(ax=axes[3, 2], data=dfStaff, x='Month', y='Foundation Doctor Year 1')
  sns.lineplot(ax=axes[4, 0], data=dfStaff, x='Month', y='Foundation Doctor Year 2')
  sns.lineplot(ax=axes[4, 1], data=dfStaff, x='Month', y='Other staff or those with unknown classification')
  sns.lineplot(ax=axes[4, 2], data=dfStaff, x='Month', y='Associate Specialist')
  sns.lineplot(ax=axes[5, 0], data=dfStaff, x='Month', y='Hospital Practitioner / Clinical Assistant')
  sns.lineplot(ax=axes[5, 1], data=dfStaff, x='Month', y='Other and Local HCHS Doctor Grades')
  sns.lineplot(ax=axes[5, 2], data=dfStaff, x='Month', y='Staff Grade')
  sns.lineplot(ax=axes[6, 0], data=dfStaff, x='Month', y='Nurses &amp; health visitors')
  sns.lineplot(ax=axes[6, 1], data=dfStaff, x='Month', y='Support to doctors, nurses &amp; midwives')
  sns.lineplot(ax=axes[6, 2], data=dfStaff, x='Month', y='HCHS doctors')
  
  axes[0,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[0,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[0,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[1,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[1,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[1,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[2,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[2,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[2,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[3,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[3,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[3,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[4,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[4,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[4,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[5,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[5,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[5,2].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[6,0].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[6,1].xaxis.set_major_locator(MaxNLocator(6)) 
  axes[6,2].xaxis.set_major_locator(MaxNLocator(6)) 
  </code></pre>
  <p>For the second part, I am trying to create a for loop to iterate all the axes and <code>set_major_locator</code>, but keep running into errors.</p>