I understand that matplotlib.figure.suptitle()
adds a title to a figure.
But what does the "sup" stand for?
1 : a secondary or explanatory title. 2 : a printed statement or fragment of dialogue appearing on the screen between the scenes of a silent motion picture or appearing as a translation at the bottom of the screen during the scenes of a motion picture or television show in a foreign language. subtitle.
Adding a Titles to Matplotlib Subplots This can be done by accessing the subplot using its axes position and using the . set_title() method. Similarly, the . set_title() method works as the other text elements do.
It is an abbreviation indicating a "super" title. It is a title which appears at the top of the figure, whereas a normal title
only appears above a particular axes
. If you only have one axes
object, then there's unlikely an appreciable difference, but the difference happens when you have multiple subplots on the same figure
and you would like a title at the top of the figure not on each of the axes
objects.
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