Bug in Copy FIgure clips out part of figure
92 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
T A
el 22 de Sept. de 2017
Comentada: T A
el 19 de Feb. de 2024
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167445/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167448/image.png)
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 comentarios
Steven Lord
el 22 de Sept. de 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.)
Respuesta aceptada
George Mencoff
el 2 de Mayo de 2018
I was having the same problem on windows 10. If you click "edit" and "copy options", and change the clipboard format to bitmap, it may fix your problem. This worked for me.
1 comentario
Ernst Broberg Hansen
el 4 de Sept. de 2019
Excellent!
Worked for me as well. Exatctly same problem. Weird, that the problem started today, but I've had Win10 and Matlab for several months...
Más respuestas (3)
Marcelo Moraes
el 6 de En. de 2022
Hi,
I solved the issue by changing the Windows High DPI scaling as follows:
Right-click on matlab.exe => Properties
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/855255/image.png)
Compatibility
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/855260/image.png)
Change high DPI settings
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/855265/image.png)
Check "Override high DPI scaling behavior".
Select "System"
OK.
Restart Matlab.
1 comentario
Peter Middleton
el 17 de Dic. de 2019
Yes - just had the same issue. Go to Win10 display settings and select the recommended zoom level (150% on my system) - now pastes ok.
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!