MATLAB: Does the legend in the figure move when I print it in MATLAB 7.0.1 (R14SP1)

legendlocationMATLABnoneposition;printresize

When I follow this procedure, my plot legend returns to its original position when I print the figure:
1. Create a figure with a legend
2. Manually move the legend box
3. Save the figure
4. Open the figure
5. Print or resize the figure

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.1 (R14SP1) in the way in which it loads figure files that contain a legend whose "Location"' property is set to "none".
To work around this issue, set the legend's 'Location' property to 'none' after you load it and before you print or resize it. Below is an example to do this using the SET command:
h=findall(gcf,'tag','legend') % find the handle to the legend
set(h,'location','none') % Use the SET command to set the "Location" property