[繪圖] legend的圖例不能正確顯示已回收
大家好
我在用legend畫圖時,我畫兩種資料點在同一個繪圖區中
http://ppt.cc/98wl 繪圖結果
明明就有兩種資料點,但卻只有一種圖例
m-file如下
function result=asd()
t=0:0.1:1
y1=50;
y2=-0.6;
subplot(2,2,1);plot(t,y1,'-*g',t,y2,'-bo');legend('ax-t','ay-t',2);grid on
title('acceleration history');
xlabel('time');ylabel('acceleration');
不知道問題是出在哪裡?
謝謝大家
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.70.213.180
※ 編輯: Ertkkpoo 來自: 219.70.213.180 (03/19 22:08)
→
03/19 22:38, , 1F
03/19 22:38, 1F