My Python code is:
values = [234, 64, 54,10, 0, 1, 0, 9, 2, 1, 7, 7] months = [\'Jan\', \'Feb\', \'Mar\', \'Apr\', \'May\', \'Jun\', \'Jul\',\'Aug\
Try tightlayout.
plt.tight_layout()
at the end of your code. It may prevent the overlap a little bit.