DISPATCH
image.py
1 '''
2  To adhere to normal imaging convention, where the first index
3  is horizontal, and the second index increases upwards, and to
4  get rid of singleton dimensions in the input array, we need a
5  squence of boring operators, which we are better off putting
6  away in a file, such as this one
7 '''
8 import matplotlib.pyplot as pl
9 def image(f,title='',vlim=[None,None]):
10  pl.clf()
11  pl.title(title)
12  pl.imshow(f.squeeze().transpose(),
13  origin='lower',interpolation='nearest',vmin=vlim[0],vmax=vlim[1])
14  pl.colorbar()
15  pl.show(block=False)
Definition: image.py:1