I want to give my graph a title in big 18pt font, then a subtitle below it in smaller 10pt font. How can I do this in matplotlib? It appears the title()
function only takes one single string with a single fontsize
attribute. There has to be a way to do this, but how?
Choose Tools > Options > Graphics > Annotation > My Footnote and select the items that you want to include. To specify the title and add subtitles or footnotes when you create a graph: in the dialog box for the graph you are creating, click Labels.
The shortest answer to your subtitle question is: There is a built-in suptitle() function. Thus, combining suptitle()/title() is similar to the more intuitively named title()/subtitle() .
What I do is use the title()
function for the subtitle and the suptitle()
for the main title (they can take different font size arguments). Hope that helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With