Copy matlab figure in Libreoffice in Linux
13 ビュー (過去 30 日間)
古いコメントを表示
I am using Linux. I have a matlab figure that I need to copy and paste directly into Libre Office Linux. There is no "copy figure" option in the edit drop down list like there is in Windows. Any suggestion?
4 件のコメント
Nicolas B.
2019 年 10 月 15 日
Personnaly, because Libre Office is supporting you to write a report, I would export into an image, like a png (see the export documentation).
回答 (1 件)
Richard Quist
2022 年 5 月 4 日
編集済み: Richard Quist
2022 年 5 月 4 日
There are a couple options for copying the figure to the clipboard on Linux.
% This example assumes that 'fig' is the handle to your figure.
% In R2020a and later, you can use the copygraphics command and specify
% the 'ContentType' as 'vector' (to ensure tightly cropped, scalable output):
copygraphics(fig, 'ContentType', 'vector');
% This example assumes that 'fig' is the handle to your figure.
% Use the print command and specify the -clipboard option and desired
% format
% Specify -dpdf and '-painters' to ensure scalable output
print(fig, '-clipboard', '-dpdf', '-painters');
% or specify -dbitmap to copy as an image
print(fig, '-clipboard', '-dbitmap');
I hope that helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!