import matplotlib.pyplot as plt
from numpy import arange
from sk_dsp_comm.sigsys import rect
t = arange(-1,5,.01)
x = rect(t,1.0)
plt.plot(t,x)
plt.ylim([0, 1.01])
plt.show()
#
# To turn on the pulse at t = 1 shift t.
#
x = rect(t - 1.0,1.0)
plt.plot(t,x)
plt.ylim([0, 1.01])
