[請教] Printing a Centered Figure
%% 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