You can change the position of the suptitle()
by setting the Position
property of the title object. The Position
property is a four-element vector in the form of [left bottom width height]
. Here's an example:
main.m371 chars16 lines
In this example, the Position
property is set to [0.5 1.05 0.5]
. The 0.5
values for left
and width
center the title horizontally, and the 1.05
value for bottom
moves the title slightly above the top of the plot.
gistlibby LogSnag