How to generate the figure of subplot with consistent size?
3 次查看(过去 30 天)
显示 更早的评论
I would like to know how to generate the figure of subplot with consistent size. This is becuase after I generate the figures of subplot from different computers (different computers have different monitor and resolution) and save them, the size of subplot in different figures appears to be different.
I think that there is command to control the size to be consistent so that I can save figures of subplot with consistent size no matter different computer is used to generate and save the figures, but I do not know that command. Does anyone know about that?
Thanks for your kind attention...
0 个评论
回答(2 个)
nanren888
2012-1-28
Look for position properties in the figures. You can get & set them with the figure & axis handles.
2 个评论
Jan
2012-1-28
@Frank Lau: But "get" and "set" *are* commands.
You can set the size, papersize and paperposition of the figure programmatically (see "doc figure"). If the figure has a well defined size, the subplots have also.
Daniel Shub
2012-1-28
Before running your code, right when you start MATLAB, or added to your startup.m
x = get(0, 'DefaultFigurePosition');
set(0, 'DefaultFigurePosition', [x(1:2), 800, 600]);
3 个评论
Daniel Shub
2012-2-7
Are you comparing on screen size? Are you figures identical (same axis limits and labels)?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!