how to give labels and title to all subplot one time
Show older comments
I am having 12 subplots in my figure All are required to have same labels How can i give them label by mentioning only one time?
Accepted Answer
More Answers (1)
Jan
on 6 Dec 2011
FigH = figure;
subplot(1,2,1); subplot(1,2,2);
AxesH = findobj(FigH, 'Type', 'Axes');
YLabelHC = get(AxesH, 'YLabel');
YLabelH = [YLabelHC{:}];
set(YLabelH, 'String', 'Y-label')
TitleHC = get(AxesH, 'Title');
TitleH = [TitleHC{:}];
set(TitleH, 'String', 'The title');
1 Comment
lhwang
on 20 Aug 2015
Very helpful, thanks
Categories
Find more on Subplots 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!