作者cathykao (圆呼呼)
看板MATLAB
标题[请教] Printing a Centered Figure
时间Thu May 10 22:46:30 2012
%% set up figure position
set(gcf, 'PaperUnits', 'inches');
papersize = get(gcf, 'PaperSize');
left = (papersize(1)-width)/2;
bottom = (papersize(2)-height)/2;
figuresize = [left, bottom, width, height];
set(gcf, 'PaperPosition', figuresize);
%% save file
print('fig1.bmp', '-dbmp');
---
请问为何我存成的档案还是不在白色背景的正中央阿?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 155.69.18.248