1from textwrap import wrap
2import matplotlib.pyplot as plt
3
4x=[1,2,3]
5y=[4,5,6]
6plt.figure(figsize=(10,10))
7plt.plot(x, y, color='red')
8title='my extremely long title. I mean, really really long. Unbelievably long.'
9plt.title('\n'.join(wrap(title,60)))