[問題] 使用set(gca,'position',[x1 y1 dx dy])已回收
因為一次要畫五張折線圖
□
□
□
□
□
我程式是使用迴圈 去把圖給一張張畫出,似乎只能使用subplot
plotkk=1;
while plotkk<=5
subplot(5,1,plotkk);
if plotkk==1
aaa1=plot(x,a(1:xlength),'marker','square');grid off;
set(aaa1,'MarkerSize',4);
set(aaa1,'LineWidth',1.5);
titletext=get(gca,'ylim');text(1980-2.8,0,'原始資料')
end
if plotkk>1
sumanss=anss(:,plotkk);
aaa2=plot(x,sumanss(1:xlength));grid off;
set(aaa2,'marker' ,'square')
set(aaa2,'color' ,[1 0 0]);
set(aaa2,'MarkerSize',4)
set(aaa2,'LineWidth' ,1.5);
end
x1 = 0 + 0.1;
dxx= 0 + 0.85;
y1 = 1-(plotkk/5)+0.035;
dyy= (1/5)-0.06;
set(gca,'Units','normalized','position',[x1 y1 dxx dyy])
hold on;
但這一段我一直想把圖畫的剛好微貼齊
卻沒辦法這麼做 常常有其中一兩張圖被蓋到邊而畫不上去
請問有沒有辦法用不使用subplot的方式
將圖能明確的定位好,被覆蓋也沒關係?
[zeroline]=plot([1980,2009],[0,0]);
set(zeroline,'color',[0 0 0])
plotkk=plotkk+1
end
--
說到底不就是個鄉民/( ̄▽ ̄)♀
我的地盤 (http://blog.xuite.net/chenag/chenag7449) o(╬ ̄皿 ̄)=○# ( ̄#)3 ̄)
害羞的東西 (http://photo.xuite.net/chenag) (# ̄▽ ̄#)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.29.217.2