MATLAB: Does the legend move when resizing the plot in MATLAB 7.1 (R14SP3)

cornerlegendMATLABmoveplotresizerighttop

When I resize my plot, my legend moves along with this plot. This did not occur in MATLAB 7.0.4 (R14SP2). I would like my legend to stay in the same position when I resize the plot.

Best Answer

This is the expected behavior for MATLAB 7.1 (R14SP3TC). This change was made so that the legend tracks the axes of the figure more closely.
As a workaround to make the legend appear on the top right corner without moving, type the following commands in the MATLAB command window:
h=legend
set(h,'Location','None')
This should fix the position of the legend when you use the camera tools.