exportgraphics: figure size: title cut off the plot

I run
x0=0;
y0=0;
width=550;
height=550;
exportgraphics(gca,'test.tif','ContentType','vector')
Then I have the first line of title (title has two rows) cut off from the plot. What needs to be done?

2 commentaires

dpb
dpb le 9 Juil 2022
First, provide enough code to produce the symptoms -- none of the code above does anything related to the call to exportgraphics and we can't see your current figure/axes that gca returns.
Jonas
Jonas le 10 Juil 2022
Modifié(e) : Jonas le 10 Juil 2022
if your figure has only one axis, you can set the OuterPosition of the axis to maximum, but non-oversized values
set(gca,'Units','normalized','OuterPosition',[0 0 1 1]);

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Centre d'aide et File Exchange

Produits

Version

R2022a

Question posée :

le 9 Juil 2022

Modifié(e) :

le 10 Juil 2022

Community Treasure Hunt

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

Start Hunting!

Translated by