%pylab inline
Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline]. For more information, type 'help(pylab)'.
import numpy as np
import matplotlib.pylab as plt
from nipy.modalities.fmri import design_matrix as dmtx
highpass = dmtx._cosine_drift(2, np.arange(0,180,1))
highpass.shape
(180, 180)
plt.imshow(highpass, interpolation="nearest")
<matplotlib.image.AxesImage at 0x3baa190>
plt.plot(highpass[:,80])
[<matplotlib.lines.Line2D at 0x58ef450>]
plt.plot(highpass[:,0:8])
[<matplotlib.lines.Line2D at 0x5e3a810>, <matplotlib.lines.Line2D at 0x5e3aa90>, <matplotlib.lines.Line2D at 0x5e3ac90>, <matplotlib.lines.Line2D at 0x5e3ae10>, <matplotlib.lines.Line2D at 0x5e3af90>, <matplotlib.lines.Line2D at 0x5e3d150>, <matplotlib.lines.Line2D at 0x5e3d2d0>, <matplotlib.lines.Line2D at 0x5e23450>]