[繪圖] plot的legend要怎麼設定位置?

看板MATLAB作者 ( )時間13年前 (2012/05/18 17:37), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
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

05/18 18:02, , 1F
legend('y1','y2','y3','location','NorthOutside')
05/18 18:02, 1F

05/18 18:03, , 2F
你一定沒有看help
05/18 18:03, 2F

05/18 18:08, , 3F
感謝XD
05/18 18:08, 3F
文章代碼(AID): #1FjXX4Mg (MATLAB)