how to give labels and title to all subplot one time
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Jan
el 6 de Dic. de 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 comentario
lhwang
el 20 de Ag. de 2015
Very helpful, thanks
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!