In [1]:
%pylab inline
Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].
For more information, type 'help(pylab)'.
In [2]:
import numpy as np
import matplotlib.pylab as plt
In [6]:
from nipy.modalities.fmri import design_matrix as dmtx
In [14]:
highpass = dmtx._cosine_drift(2, np.arange(0,180,1))
In [15]:
highpass.shape
Out[15]:
(180, 180)
In [18]:
plt.imshow(highpass, interpolation="nearest")
Out[18]:
<matplotlib.image.AxesImage at 0x3baa190>
In [29]:
plt.plot(highpass[:,80])
Out[29]:
[<matplotlib.lines.Line2D at 0x58ef450>]
In [32]:
plt.plot(highpass[:,0:8])
Out[32]:
[<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>]
In [ ]: