How to set figure size in 2025a
조회 수: 162 (최근 30일)
이전 댓글 표시
Hi, all
I just upgrated matlab to 2025a today and i immediately notice one thing: how do we set figure size now???
I used to do something like
set(gcf, "units", "inches", "position", [0, 0, 6, 4])
and copy/paste it into ppt - i would have a figure with aspect ratio 6 inch wide by 4 inch tall
----
however, now it gives me a figure that is 6 inch wide but 4.33 inch tall.
I tried InnerPosition/OuterPosition/PaperPositoin, none of them worked.
댓글 수: 4
dpb
2025년 7월 16일
"...let us know how you're copying the figure. "
He didn't add that detail in the comment above, but I'm guessing from the way the description was written he's been doing it by keyboard Ctrl-C/Ctrl-V, not via code. Of course, one would hope the code would produce same results...
답변 (1개)
Adam Danz
2025년 7월 16일
편집: Adam Danz
2025년 7월 16일
Thanks for mentioning this. It's being looked into.
In the meantime, exportgraphics and copygraphics have new (R2025a) properties to specify the width and height of the exported image that may be helpful for the workflow you described.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!