def plotOutputsOverTime(vectors, buVectors=None, title='On-times'):
 import pylab
 pylab.ion()
 pylab.figure()
 imData = vectors.transpose()
 if (buVectors is not None):
  assert (buVectors.shape == vectors.shape)
  imData = imData.copy()
  imData[buVectors.transpose().astype('bool')] = 2
 pylab.imshow(imData, aspect='auto', cmap=pylab.cm.gray_r, interpolation='nearest')
 pylab.title(title)

def plotOutputsOverTime ( vectors , buVectors = None , title = 'On-times' ) : import pylab pylab . ion ( ) pylab . figure ( ) imData = vectors . transpose ( ) if ( buVectors is not None ) : assert ( buVectors . shape == vectors . shape ) imData = imData . copy ( ) imData [ buVectors . transpose ( ) . astype ( 'bool' ) ] = 2 pylab . imshow ( imData , aspect = 'auto' , cmap = pylab . cm . gray_r , interpolation = 'nearest' ) pylab . title ( title )
generate a figure that shows each output over time .