Error copying a figure to clipboard
Show older comments
Dear all,
I would like to copy a matlab figure to my clipboard so I can paste it in Powerpoint as a vector graphic. This is usually very simple, I just choose "metafile" in the cop options. More recently I tried the same thing getting this error message:
Error using print (line 82)
Unable to copy the figure to the clipboard. Increasing the Java Heap Size setting in the MATLAB preferences may
help; otherwise try saving to a file or choose a different clipboard format.
Error in matlab.graphics.internal.copyFigureHelper (line 158)
print(argsToPrint{:});
Error in editmenufcn (line 69)
matlab.graphics.internal.copyFigureHelper(hfig)
Error while evaluating Menu Callback.
I followed the suggestion and increased the Java thingy, up to 4 GB, still same problem. The weird thing is, it's actually a rather simple image of only 4 MB. I'd be happy to upload the .fig file here if possible.
Any hints what the problem might be?
Thanks,
Toby
6 Comments
Qian lix
on 24 Apr 2020
Hello Toby:
I have the same problem as you with the same feedback.
Increasing memory won't solve this problem either
my matlab version is 2020a ,how about yours? I'm not sure this would have happened to an earlier version.
I'm using an iteration graph of variable size, the interesting thing is that the problem arises when you increase the number of iterations to a certain value.
I'm looking for other solutions.
Have you made any progress of solving this question?
Sai Bhargav Avula
on 14 May 2020
Edited: Sai Bhargav Avula
on 14 May 2020
can you provide your OS and MATLAB version details?
Rahul Ramanujam
on 30 Oct 2020
I have also the same problem cannot find copy figure in edit. OS:ubuntu 20, Matlab 2020
Sinmyong Park
on 17 Nov 2020
I also have same problem. I use OS win10, matlab R2018a. I just want to copy surf figure(1024×20 double) to ppt file. I get same feedback above. So I try to copy other surf figure(2048×128 double) with different data and document path, then there are no problem. ..then, i move first one have a problem to other directory and get same problem. I cant find the cause.
I also have same problem.It happened when my powergui sample time is 1e-8s. But it disappaered when I tried to get a samller figure or just set the sample time to 1e-7s.
我也遇到了同样的问题。但是当我试图将截图的范围缩小或者把仿真步长从1e-8s缩短至1e-7s时,问题消失了。我猜是因为图内数据点太多加上优化有问题,复制时直接内存爆炸了。
Chris_WMS
on 2 Sep 2022
Hi, I'm facing the same problem in copying the METAFILE figure to Word. I'm using MATLAB 2020b in W10. Is there any solutions or any updates regards this issue?
Answers (2)
Chihang Yang
on 18 Nov 2020
0 votes
I also met this problem in MATLAB 2020a.
But the problem is gone when I copy the same figure in MATLAB 2018b.
1 Comment
Fanyun
on 21 Feb 2023
I also met this problem in MATLAB 2021b.
But the problem is gone when I copy the same figure in MATLAB 2018b. But I want to know how to solve this problem in MATLAB 2021b. Thank you.
Samuel Abimbola Ogunfuye
on 21 Oct 2022
0 votes
You can use the highlighted icon in the topright in the image shown . It automatically shows when your cursor it close or on the title at the top of the image, then you can choose the copy icon. That was how I resolved mine.
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!