作者shomingchang ( )
看板MATLAB
標題[繪圖] plot的legend要怎麼設定位置?
時間Fri May 18 17:37:05 2012
plot(x1,y1,'b');hold on;
plot(x2,y2,'r');hold on;
plot(x3,y3,'g');
legned('y1','y2','y3');
%然後我把圖存檔
但是 legend 預設是靠右的,這樣會擋到我的圖
請問要怎麼設定 legend 的標示置中或靠左?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.26.172.73
1F:推 diva:legend('y1','y2','y3','location','NorthOutside') 05/18 18:02
2F:→ diva:你一定沒有看help 05/18 18:03
3F:→ shomingchang:感謝XD 05/18 18:08