📅  最后修改于: 2022-03-11 14:56:47.734000             🧑  作者: 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)');