MATLAB: How to set size of actual plot area so that axis labels don’t change axis lengths

plotting

I want to generate a batch of figures, but the y-axis has different scales, with some being single-digit and others being double-digit. Setting figure size doesn't keep the x-axis length from being different for these figures due to the double-digit y-axis ticklabel taking up more space than the single-digit y-axis ticklabel. Is there a way to set the actual plot area itself, rather than the figure size?

Best Answer

Do you mean setting the size of the axes object?
See the position properties of the axes. I assume you mean the OuterPosition, Position, TightInset or ActivePositionProperty.
If this does not help, please post some code which replicates the problem and/or a screenshot.
Related Question