[請教] Printing a Centered Figure

看板MATLAB作者 (圓呼呼)時間13年前 (2012/05/10 22:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
%% 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
文章代碼(AID): #1FgzJ9rf (MATLAB)