Title position below the x axis
Show older comments
How can I change the position of a title from top of the figure to the below of x axis using code(automatically) on a subplot?
Accepted Answer
More Answers (1)
Here are two options that may work for you:
%alter vertical position of title
figure;hold on
subplot(2,1,1)
t=title('Title1')
xlabel('xlabel')
set(t,'position',get(t,'position')-[0 1.4 0])
%add title as part of the xlabel
subplot(2,1,2)
xlabel(['xlabel',newline,'\bf Title2'])
1 Comment
Mahdi Torabi
on 30 Jun 2018
Categories
Find more on Title in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!