shithub: aubio

ref: ef1c3b74e92fb9e513e77a2a261ff07b6768dbe1
dir: /examples/plotmat.py/

View raw version
#!/usr/bin/env python

import pylab
import numpy
import sys

filename=sys.argv[1]

mat=pylab.load(filename)
nmat=numpy.array(mat).T
print numpy.shape(nmat)


pylab.matshow(nmat, cmap=pylab.cm.gray, aspect='auto')
#pylab.imshow(nmat, cmap=pylab.cm.gray, aspect='auto', interpolation=False)
#pylab.contour(nmat, cmap=pylab.cm.gray, aspect='auto')

pylab.show()