Good quality graph from Matlab to MSOffice

63 ビュー (過去 30 日間)
Meh
Meh 2012 年 1 月 23 日
コメント済み: Mariela Hernández 2017 年 9 月 20 日
Hi, which format or method will give me the best graphics quality, if i want to use matlab graphics in MS Powerpoint, for example. I have used edit-->copyfigure.. but, the font and the lines become very thin.
  1 件のコメント
Mariela Hernández
Mariela Hernández 2017 年 9 月 20 日
Word 2016 admits vectorial image ".svg". You can import your matfigure using it:
saveas(figure (1), '.svg')

サインインしてコメントする。

採用された回答

owr
owr 2012 年 1 月 23 日
export_fig has helped me immensely. Also check out "imclipboard":
I need to insert MATLAB graphs into Outlook emails and Word documents very often. I downloaded both MATLAB Central functions and made myself the following shortcut:
set(gcf,'Color',[1 1 1]);
imclipboard('copy', export_fig());
The first line just sets the figure background to white so it looks nicer within emails and word docs that have a white background.
I produce the figure that I need, press the shortcut button that triggers the code above, and then just paste into Outlook. Its been quite convenient.
  2 件のコメント
Meh
Meh 2012 年 1 月 24 日
Well Thankyou for your suggestions! They look handy but I still am not satisfied with the quality. I used export_fig for bmp and jpg...the font size and the lines look ok but the quality is still not convincing. The imclipboard terminates at
[~, ~, e] = fileparts(filename);
because of ~ signs. My Matlab marks ~ as errors.
owr
owr 2012 年 1 月 24 日
The tilde's are still relatively new to MATLAB I guess, you must be running an earlier version. You can replace those with the names of dummy variables.
In terms of your original question, I agree that the quality could still not be ideal. I use export_fig, etc. mostly to share graphs quickly with other folks I work with. I do this often, so the quality is secondary to the ease. I also got better results from export_fig than from any luck I had meddling around with the settings myself. To be fair, I didnt put much time into it.
You may find this blog useful:
http://blogs.mathworks.com/pick/2010/05/28/creating-and-exporting-publication-quality-graphics/
Thats where I got the original reference to export_fig.
Good luck!

サインインしてコメントする。

その他の回答 (1 件)

Wayne King
Wayne King 2012 年 1 月 23 日
Try:
File -> Save As
and then use a bitmap
Alternatively from the command line
print -dbitmap
You may also want to try:

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by