How to set default figure size?
98 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
回答 (1 件)
the cyclist
2017 年 7 月 18 日
編集済み: the cyclist
2017 年 7 月 18 日
get(0,'defaultfigureposition')
Then set the figure position to whatever you want using the equivalent set() command.
5 件のコメント
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
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.
参考
カテゴリ
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!