How to set default figure size?

The default figure sizes of different computers are different. Therefore,
1) I want to know the default figure size of one of the computers.
2) And I want to set the same figure size as a default for other computers.
Many thanks in advance!

回答 (1 件)

the cyclist
the cyclist 2017 年 7 月 18 日
編集済み: the cyclist 2017 年 7 月 18 日

1 投票

get(0,'defaultfigureposition')
Then set the figure position to whatever you want using the equivalent set() command.
See more details in the documentation about default property values.

5 件のコメント

Sungwoo Park
Sungwoo Park 2017 年 7 月 19 日
編集済み: Sungwoo Park 2017 年 7 月 19 日
Thank you for the answer. I checked two computers and their default sizes are same. However, when I copied and pasted in the powerpoint, the figure sizes were different. How can I maintain the figure size same? I think the size of the figure copied depends on the size of monitor or screen. Can it be independent on the screen size?
Jan
Jan 2017 年 7 月 19 日
@Sungwoo Park: Please explain the step "copied and pasted in the powerpoint" with any details. Are you aware that this detail did not appear in the question?
Sungwoo Park
Sungwoo Park 2017 年 7 月 19 日
編集済み: Sungwoo Park 2017 年 7 月 19 日
@ Jan Simon: Sorry, it's my bad. I'm copying figure to powerpoint and excel by using 'edit-copy figure' menu with 2 different computers. The sizes of MATLAB figure are same. However, when I copied the figure and pasted into either of powerpoint or excel, the sizes were different. The computer of higher resolution of screen resulted in smaller figures in ppt or excel. How can I have the same size of figure that copied from MATLAB figure in two different computers?
Antonio Astorino
Antonio Astorino 2017 年 11 月 4 日
Hi Sungwoo! I am experiencing a similar problem. Have you solved yours? If you did, could you please share your solution? Thanks a lot.
Best regards,
Antonio.
Sargondjani
Sargondjani 2024 年 11 月 23 日
編集済み: Sargondjani 2024 年 11 月 23 日
For future reference: you can always save a figure first in a certain format. There are the options to use saveas, print, exportgraphics:
saveas(figname,'filename','fig'); %example with matlab "figure"
print(figname,'filename', '-dpng')%example with png format
exportgraphics(figname,'filename.eps')%example with eps format
I think the last one is the preferred function.

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

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

製品

タグ

質問済み:

2017 年 7 月 18 日

編集済み:

2024 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by