plt.grid(True)
plt.xlabel('x vals')
plt.ylabel('y vals')
plt.bar(xvals, yvals, width=width, align='center')
plt.xticks(xvals, xnames)
plt.yticks(list(range(0, max(yvals), yinterval)))
plt.xlim([min(xvals) - 0.5, max(xvals) + 0.5])
figure.savefig('barchart.png', format='png')
plt.show()
if __name__ == '__main__':
    plot_graph1()
how to put gap between y axis and first bar in vertical barchart matplotlib