MATLAB: How to move a plot to the left

move plot

When doing plotyy the right axis label is outside the image and there is some space left on the left of the left axis. I would like to move the whole plot left so that both axis labels fit correctly. Is it possible with Matlab code?
ty

Best Answer

pos = get(gca, 'Position');
xoffset = -0.1;
pos(1) = pos(1) + xoffset;
set(gca, 'Position', pos)