📜  添加手动图例 matlab - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:01.437000             🧑  作者: Mango

代码示例1
h1=plot([1:10],'Color','r','DisplayName','This one');hold on;
h2=plot([1:2:10],'Color','b','DisplayName','This two');
h3=plot([1:3:10],'Color','k','DisplayName','This three');
legend([h1 h3],{'Legend 1','Legend 3'})