title: how to put gap between y axis and first bar in vertical barchart matplotlib
body: <p>I have a barchart code snippet as below..When you run this,you get 4 bars ,the first of which lies against the y axis.Is it possible to put some gap between y axis and the first bar?</p>
  
  <pre><code>def plot_graph1():
      xvals = range(4)
      xnames=["one","two","three","four"]
      yvals = [10,30,40,20]
      width = 0.25
      yinterval = 10
      figure = plt.figure()
      plt.grid(True)
      plt.xlabel('x vals')
      plt.ylabel('y vals')
      plt.bar(xvals, yvals, width=width)
      plt.xticks([ x+(width/2) for x in  xvals],[x for x in xnames])
      plt.yticks(range(0,max(yvals),yinterval))
      figure.savefig("barchart.png",format="png")
      plt.show()
  if __name__=='__main__':    
      plot_graph1()
  </code></pre>
  
  <p>The output is as below</p>
  
  <p><img src="https://i.stack.imgur.com/vtGGL.png" alt="barchart as produced by above code"></p>
  
  <p>Any help appreciated</p>
  
  <p>thanks</p>
  
  <p>mark</p>