how can I change the distance between the axis and their title?
181 views (last 30 days)
More Answers (1)
AJ von Alt on 21 Jan 2014
Edited: AJ von Alt on 21 Jan 2014
A title is a text object. You can change the position of any text object by using set to change the object's 'position' property value to a new vector. See the text properties documentation for more information.
Here is a quick demo where the title is moved to the left portion of the figure.
% move a title to the left
% create a figure and plot something
% create a title and store its handle
th = title('blah');
% get the position of the title
titlePos = get( th , 'position');
% change the x value to 0
titlePos(1) = 0;
% update the position
set( th , 'position' , titlePos);