How do I fit long title?

后端 未结 4 860
北恋
北恋 2020-12-25 12:47

There\'s a similar question - but I can\'t make the solution proposed there work.

Here\'s an example plot with a long title:

#!/usr/bin/env python

i         


        
4条回答
  •  再見小時候
    2020-12-25 13:17

    I preferred to adapt @Adobe's solution in this way:

    plt.title("First Title\n%s" % "\n".join(wrap("Second Title", width=60)))
    

提交回复
热议问题