Consider the following MWE with produces a figure:
fig1 = figure(1);
PaperW = 16;
PaperH = 7.5;
fig1.Units = 'centimeters';
fig1.Position = [20 10 PaperW PaperH];
fig1.PaperUnits = 'centimeters';
fig1.PaperPosition = [0 0 PaperW PaperH];
I'm trying to save this as a
.png file using
print. Additionally, I want the saved image to be 16cm by 7.5cm. I specified this using
PaperH (the width and height).
The problem is, the bottom of the
xlabel text is cut off. Why is this happening? And how can I solve this problem?
Zoomed in on the
xlabel. Notice how the bottom of the
y are cut off.