1

If I want to add a tilte to a plot created with matplotlib pyplot in python I use the following command:

plt.title('My title', fontsize=20)

How can I add two titles, in two different lines, with different font size, in the sames plot? I tried:

plt.title('My title', fontsize=20)
plt.tilte('My subtitle', fontsize=15)

But the second titled was ignored and only the first one appeared.

Thank you

3
  • 1
    Here is your answer: stackoverflow.com/questions/28836048/… Commented Apr 16, 2018 at 10:00
  • @YesThatIsMyName If you find a duplicate, flag it instead of just writing a comment Commented Apr 16, 2018 at 10:01
  • @DavidG ok, I didn't know that Commented Apr 16, 2018 at 10:27

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.