Reputation:
Here is an example:
fig.suptitle('Lorem ipsum dolor sit amet, consectetur adipiscing elit donec nec condimentum libero. Phasellus condimentum porttitor congue morbi eget quam sed justo egestas lobortis aenean et erat metus')
How to make this title in 3 lines?
Upvotes: 12
Views: 28007
Reputation: 1697
Just insert a newline character \n
where you want the new line.
import matplotlib.pyplot as plt
fig = plt.figure()
fig.suptitle('This sentence is\nbeing split\ninto three lines')
plt.show()
Upvotes: 25