%matplotlib inline
import pylab as plt
from numpy import *
x = linspace(-1,2,200) # numpy.linspace generates an array of uniformly spaced values
plt.plot(x, exp(-2*x));
for c in [-3,-2,-1,0,1,2,3]:
plt.plot(x, c*exp(-2*x))
You can control the colors and linewidths if you like:
for c,mycolor,mywidth in zip([-3,-2,-1,0,1,2,3],'kkrkkk',[1,1,5,1,1,1,1]):
plt.plot(x, c*exp(-2*x), color=mycolor, lw=mywidth)