You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matplotlib.pyplot.title()
does not display the title correctly, if the title has more than one ''\n" in the title string .
it would be nice to have a title, that has multiple lines.
The text was updated successfully, but these errors were encountered:
import matplotlib.pyplot as plt
plt.title('Line1\nLine2\nLine3\nLine3')
plt.plot(range(10))
plt.show()
I'm interested to know if any devs have any ideas about this? Whether it is even possible to do without breaking other things (such as axes positioning etc.)?
I notice that one can get some useful information about the text object which might be one way of figuring out the bounding box of the title and/or suptitle which could be used for adjusting appropriately: ax.title.get_window_extent() (once a renderer has been created).
#1109 is designed to propose a solution to this perennial problem. So whilst this issue is not fixed, it is certainly on the radar as one of the core requirements for the aforementioned MEP.
Original report at SourceForge, opened Mon Nov 23 05:44:52 2009
matplotlib.pyplot.title()
does not display the title correctly, if the title has more than one ''\n" in the title string .
it would be nice to have a title, that has multiple lines.
The text was updated successfully, but these errors were encountered: