MATLAB: How to prevent Y axis exponential from overlapping with the plot

MATLABoverlapoverlap ylabelsemilogyy axis label

On my loglog plot with a reversed x axis, the y axis labels are positioned incorrectly. Messing with OuterPosition and Position doesn't seem to help, and TightInset is locked. Any ideas? Thanks in advance!

Best Answer

I could reproduce that behaviour in R2018b. This is obviously a bug.
Try this:
x = logspace(-4, 2, 25); % Create Data

y = logspace(0, 10, 25); % Create Data
figure
loglog(x, y)
Ax = gca;
Ax.XDir = 'reverse';
yt = Ax.YTick; % Get ‘YTick’ Values
Ax.YTickLabel = compose('10^{%d} ', log10(yt)); % Create New ‘YTickLabel’ Cell Array, Adding End Spaces
Creating your own tick labels and adding spaces at the end appears to work: