1. 程式人生 > >subplot 設置不一樣的圖片大小和位置

subplot 設置不一樣的圖片大小和位置

sin exp sub posit tla brush wid 設置 http

t=[0:0.1:25];
y1=exp(-t/3);
y3=sin(2*t+3);
y2=log(t+1);
subplot(2,2,1)
plot(t,y1,‘linewidth‘,2)
subplot(2,2,2)
plot(t,y2,‘linewidth‘,2)
% subplot(2,2,[3,4])   % 可以這樣設置  一張圖占多張圖的位置
subplot(‘position‘,[0.2 0.05 0.6 0.45])
plot(t,y3,‘r‘,‘linewidth‘,2)

  技術分享圖片

subplot 設置不一樣的圖片大小和位置