MATLAB: Bug in Copy FIgure clips out part of figure

bugcopy figureMATLAB

I've recently installed Matlab (R2017a on Windows 10 Home) on a new laptop and just noticed that the Copy Figure button results in only part of the figure being pasted. Specifically, the upper-left portion of the figure is preserved, but the rest is lost. I've not done any adjustments to the figure dimensions nor axes bounds, nor am I using any specialized plotting software, so this appears to be the default behavior. I've tested pasting into several MS Office products and MS Paint, all showing the same behavior. Below is a sample of what gets pasted into MS Paint for reference.
Manually resizing the figure axis bounds so that the axis is located in the upper-left section of the figure window (shown in the second plot below) results in the entire figure being copy-paste-able. This seems to imply the issue is related to Matlab's perception of the figure bounding box.
I noticed this link: https://www.mathworks.com/matlabcentral/answers/197305-possible-bug-in-copying-figures which alludes to a similar issue, though it was R2015a. Thanks in advance for any help.

Best Answer

The problem appears to be with Windows 10. The zoom level setting in Windows 10 affects how multiple applications perceive a visible window's extent. For instance, the same buggy behavior can be seen in MS Excel by following these steps:
1) Open Excel and create a new empty spreadsheet
2) File some rows and columns with any data
3) Select the filled cells
4) Select Copy->Copy as Picture... in the toolstrip
5) Select Picture Format and click OK
6) Paste