exportgraphics: figure size: title cut off the plot

34 views (last 30 days)
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 Comments
Jonas
Jonas on 10 Jul 2022
Edited: Jonas on 10 Jul 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]);

Sign in to comment.

Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by