title: how to avoid overlapping of barchart using matplotlib
body: <p>I am new to data science using python . While plotting two different barcharts I got into an problem. This is my code :</p>
  <pre><code>def compare_groups(field):
  if field in less_equal_150_cal.columns:
    less_equal_150_cal[field].plot.bar(color = 'blue',alpha =0.4, title = field )
    more_150_cal[field].plot.bar(color = 'red', alpha =0.4)
  else:
      raise ValueError(f&quot;{field} not found&quot;)  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/JYL0y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JYL0y.jpg" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/sJDfK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sJDfK.jpg" alt="less_equal_150_cal" /></a>The resulting bargraphs are overlapping each other. I want two different bar graphs.</p>
  <p><a href="https://i.stack.imgur.com/lylHq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lylHq.jpg" alt="enter image description here" /></a></p>