How to add a title and logo to a figure with multiple plots?
Mostrar comentarios más antiguos
LS,
I have made a figure with four plots. Each of the plots have a title indicating what the plot shows. Is it possible to add a title above those four plots as a common title? And is it possible to add a picture (logo) next to the title? Help would be very much appreciated.
Best regards,
Frits Hermans
Respuesta aceptada
Más respuestas (2)
Andrew Newell
el 28 de Mzo. de 2011
EDIT: A crude way to add the logo is to select Insert -> Axes from the menu, put an axis box where you want it, then do the following:
logo = imread('logo.gif');
imshow(logo)
axes off
It may not look good, though, unless your logo is very simple. You could also create your main title using Insert -> TextBox.
Dave Welch
el 26 de Abr. de 2011
Nice approach, but I don't think this is what Frits is asking. Suppose you have this code:
fHandle = figure;
hold on;
title( 'Main Title' );
for xx = 1:X
% Do some computations...
subHandle(xx) = subplot( 4, 1, xx);
title( char( sprintf( 'Subplot %d', xx ) ) );
end
The code runs fine, but the main title gets the kibosh from the subplots in the loop. I think the suplabel option is probably the best in this instance.
( Can't imagine why MATLAB hasn't addressed this issue yet. We're on what, R2010? )
2 comentarios
Andrew Newell
el 26 de Abr. de 2011
No, R2011a.
Andrew Newell
el 26 de Abr. de 2011
Is this a comment on Paulo's answer? I have already suggested using suplabel.
Categorías
Más información sobre Title en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!