add header to figure

7 visualizaciones (últimos 30 días)
Stephen Gottschalk
Stephen Gottschalk el 28 de Abr. de 2020
Respondida: Star Strider el 28 de Abr. de 2020
I want to add a top header or banner line to a figure that has multple plots. Pseudo code is like this
figure;subplot(1,1,1);title('Big Title');subplot(2,2,1);title('Little One');subplot(2,2,2);title('Little Two');
That code generate two subplots and overwrites the 'Big Title'. The plots are saved to fig files and pdf files because not everyone had MatLab, so I'm using pdf files to communicate information with them.

Respuesta aceptada

Star Strider
Star Strider el 28 de Abr. de 2020
If you have R2018b or later, use the sgtitle function. For earlier versions, the File Exchange contribution suplabel will likely do what you want.

Más respuestas (0)

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by