Automatically setting y-axis limits for bar graph using matplotlib,plt.show()