📅  最后修改于: 2022-03-11 14:58:41.652000             🧑  作者: Mango
x = linspace(0,pi);
p1 = plot(x,sin(x),'b','linewidth',2);
hold on
p2 = plot(x,cos(x),'r','linewidth',2);
uistack(p1,'top');
legend([p1,p2],'sin(x)','cos(x)');