Figure changes size when i export it

Hey,
i want to create some plots for a word document, which always have a specified size, so the plottitle etc. dont change the size when the plot would be scaled in order to fill the whole width of the document. I tried to set a specific size by using
fig.Units = 'centimeters';
fig.Position = [5 5 width hight];
But when i save the illustration the size differs from the one i determined above.
Also when i save a figure manually with the "export setup" function the size of the saved picture is not the same as i specified in the tool.
Would be great if anyone could help me. Thanks

1 Kommentar

Sreeranjani Sekar
Sreeranjani Sekar am 9 Nov. 2021
If File > Export Setup is used to resize the figure, then please note that the dimensions include the entire figure window except for the frame, title bar, menu bar, and any tool bars.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kategorien

Mehr zu Printing and Saving finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by