Bug in Copy FIgure clips out part of figure
Show older comments
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.
2 Comments
Steven Lord
on 22 Sep 2017
I don't see any attached pictures. Please try attaching it or including it in a comment again using either the Image button (the one with the green picture) or the Attach file button (the one with the paperclip.)
T A
on 22 Sep 2017
Accepted Answer
More Answers (3)
Marcelo Moraes
on 6 Jan 2022
5 votes
Hi,
I solved the issue by changing the Windows High DPI scaling as follows:
Right-click on matlab.exe => Properties

Compatibility

Change high DPI settings

Check "Override high DPI scaling behavior".
Select "System"
OK.
Restart Matlab.
1 Comment
Arun Kumar Kantheti
on 19 Feb 2024
This worked for me. Thanks!
T A
on 3 Oct 2017
0 votes
Peter Middleton
on 17 Dec 2019
0 votes
Yes - just had the same issue. Go to Win10 display settings and select the recommended zoom level (150% on my system) - now pastes ok.
1 Comment
seager1989
on 10 May 2020
The 125% works for me.
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!