ale*_*ale 89 matlab matlab-figure
我想做的就是使宽度更大,高度更小.我只是在做栅格图,但这个问题适用于任何MATLAB figure.我可以在创建时直接使用图形手动调整它,但我希望程序以正确的大小将其吐出来开始.
Mar*_*din 81
这可能对你有帮助吗?
hFig = figure(1);
set(hFig, 'Position', [x y width height])
Run Code Online (Sandbox Code Playgroud)
zin*_*aai 62
把它写成一行:
figure('position', [0, 0, 200, 500]) % create new figure with specified size
Run Code Online (Sandbox Code Playgroud)

小智 31
figure (1)
hFig = figure(1);
set(gcf,'PaperPositionMode','auto')
set(hFig, 'Position', [0 0 xwidth ywidth])
plot(x,y)
print -depsc2 correlation.eps; % for saving in eps, look up options for saving as png or other formats you may need
Run Code Online (Sandbox Code Playgroud)
这样可以将图形保存在指定的尺寸中
| 归档时间: |
|
| 查看次数: |
268812 次 |
| 最近记录: |