如果用matlab的话,大概是这样x=0:0.01:10;y1=-2*x-1;y2=-2*x;y3=-2*x+1;plot(x,y1,'r');hold on;plot(x,y2,'b');hold on;plot(x,y3,'k');