title: python - double bars are cut out of chart area
body: <p>I am plotting a double bar graph and line graph on the same chart. For the first and last x-tick, only one bar is visible in the chart. All the x-ticks in the middle have double bars (as I would like). <a href="https://i.stack.imgur.com/sNUAL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sNUAL.png" alt="image here"></a></p>
  
  <p>this is the code I am using:</p>
  
  <pre><code>for h in range(0,len(x)):   # len(x) is &gt; 4000
      if h &gt; 0 :
          fig = plt.figure()
          ax1 = fig.add_subplot(111)   
          ax1.set_xlim([-1,13])          
          ax2 = ax1.twinx()
          df2[['A','B']].plot(kind='bar', ax=ax1, figsize=(15, 10), legend=False)
          df2[['C']].plot(style='r-', ax=ax2, figsize=(15, 10), marker='o',legend=False)
  
          ax1.set_xlabel("x-label", fontsize=15)
          ax1.set_ylabel("y-label 1", fontsize=15)
          ax2.set_ylabel("y-label 2", fontsize=15)
  
          # h1, l1 = ax1.get_legend_handles_labels()
          # h2, l2 = ax2.get_legend_handles_labels()
  
          plt.tight_layout()
          plt.grid()
          fig.savefig('xyz.png')
          plt.close()
  </code></pre>
  
  <p>How can i fix this?</p>