Copy Figure in MetaFile Error

13 ビュー (過去 30 日間)
Chris_WMS
Chris_WMS 2022 年 10 月 13 日
回答済み: Hitesh 2024 年 9 月 17 日
Dear all,
I'm using MATLAB R2020b. Recently, I encounter errors everytime I copy the MATLAB plot figure as MetaFile using "Edit >> Copy Figure".
The error messages are as follows:
Error using print (line 83)
There was a problem while generating the output:
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.
Kindly advise to solve this issue.
Thank you in advanced.
Regards,
Chris

回答 (1 件)

Hitesh
Hitesh 2024 年 9 月 17 日
Hi Chris_WMS,
I also have encountered the similar error when I adjusted the copy options as follows:
  • Clipboard format: Metafile
  • Figure background color: Transparent background
  • Size: Match figure screen size (checked)
The workaround that worked for me was updating my MATLAB version to R2021a.
Hope this resolves the issue for you too.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by