Issue
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?
Solution
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()
Answered By - Ronny Andersson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.