numpy -> plot figure
import pylab
import matplotlib.pyplot as plt###plot figure
a is numpy.array
plt.imshow(a)
pylab.show()###plot subfigure
a,b are numpy.array
plt.subplot(2,1,1)
plt.imshow(a)
plt.subplot(2,1,2)
plt.imshow(b)
pylab.show()
matplotlib.pyplot works as the same as the Matlab