[問題] figure視窗放大已回收

看板MATLAB作者 (噗)時間14年前 (2010/01/24 02:40), 編輯推噓2(202)
留言4則, 3人參與, 最新討論串1/1
雖然是很簡單的動作 一般而言,我們打上figure 視窗打開後都是預設大小 雖說只要按視窗的右上方 最大化那個鍵 就可以將視窗放大 但有沒有指令 可以使視窗放大 我查了一下 但是不知道 他的屬性是什麼 所以來詢問 3Q -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.84.225

01/24 02:54, , 1F
position ?
01/24 02:54, 1F

01/24 03:03, , 2F
figure('Position',get(0,'ScreenSize')) 之後再畫圖
01/24 03:03, 2F
saveas(gcf,'aa.jpg'); 存下的圖比較小 我發現當我將視窗放大 手動存成圖片 他存下的圖 比較大 所以我以為用 figure('Position',get(0,'ScreenSize')) saveas(gcf,'aa.jpg'); 也可以存放大後的圖 但好像不行 還是預設大小~ 無法跟手動按另存大小一樣

01/24 23:55, , 3F
我用你的方法存是大圖 (2008a)
01/24 23:55, 3F
這我也有試但還是小圖 也許是因為我subplot很多圖 所以會有這類問題 不過解決了~ figure(1) set(gcf,'Position',get(0,'ScreenSize')) h=getframe(1); imwrite(h.cdata,'aa.jpg'); ※ 編輯: icher168 來自: 123.192.84.225 (01/26 01:30)

05/26 17:29, , 4F
set(gcf,'color','white','paperpositionmode','auto');
05/26 17:29, 4F
文章代碼(AID): #1BMqAroV (MATLAB)