title: Boxplot & Scatter Plot: Disappearing X Ticks
body: <p>I have some data to make a scatter plot:</p>
  
  <pre><code>df_1 = pd.DataFrame({'X':[3,3,3,3],
                       'Y':[1,2,3,4]})
  </code></pre>
  
  <p>and some more data to make a box plot on the same axes:</p>
  
  <pre><code>np.random.seed(1234)
  df_2 = pd.DataFrame(np.random.randn(10,1),
                     columns=['Y'])
  
  df_2['X'] = [2,2,3,3,3,2,2,2,2,2]
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code># Scatter
  ax = df_1.plot.scatter(x='X',
                         y='Y',
                         c='k',
                         s=100)
  
  props = dict(linewidth=4)
  
  # Boxplot
  ax = df_2.boxplot(by='X',
                    boxprops     = props,
                    medianprops  = props,
                    whiskerprops = props,
                    capprops     = props,
                    ax=ax)
  
  plt.suptitle("")
  ax.set_title("")
  plt.xlabel('X')
  plt.ylabel('Y')
  
  font = {'weight' : 'normal',
          'size'   : 30}
  plt.rc('font', **font)
  
  plt.xlim([0,4])
  
  fig = plt.gcf()
  fig.set_size_inches(10,7)
  
  plt.show()
  </code></pre>
  
  <p>but I got:</p>
  
  <p><a href="https://i.stack.imgur.com/yBBUh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yBBUh.png" alt="enter image description here"></a></p>
  
  <p>My x axis doesn't show all it's ticks and the ones that it does show are in the wrong place. How can I correct the x axis please?</p>