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 8 import matplotlib.pyplot
as pl
9 def image(f,title='',vlim=[None,None]):
12 pl.imshow(f.squeeze().transpose(),
13 origin=
'lower',interpolation=
'nearest',vmin=vlim[0],vmax=vlim[1])