title: how to change x axis in matplotlib
body: <p>I want to change the scale of x axis in matplotlib in python. I am using following code. </p>
  
  <pre><code>df.iloc[:,5:9].plot(kind="density",subplots=True,layout=(2,2),sharex=False)
  </code></pre>
  
  <p>I want to have different X axis scale for all X axis. What I tried is following</p>
  
  <pre><code>fig=plt.figure(figsize=(15,15))
  ax1=fig.add_subplot(2,2,1)
  ax2=fig.add_subplot(2,2,2)
  ax2=fig.add_subplot(2,2,3)
  ax2=fig.add_subplot(2,2,4)
  
  ax1.set_xticks(np.arrange(1,5000,500))
  ax2.set_xticks(np.arrange(1,5000,500))
  ax3.set_xticks(np.arrange(1,5000,500))
  ax4.set_xticks(np.arrange(1,5000,500))
  </code></pre>
  
  <p>But, when I run this I get empty figure.</p>