def plot(self,**kwargs):
"""plot landscape (kwargs are passed on to imshow()
Use interpolation='bilinear' or 'bicubic' for a smooth
surface. Default is 'nearest', which shows exact bin
boundaries.
"""
import pylab
kwargs.setdefault('interpolation','nearest')
pylab.clf()
pylab.xlabel('x')
pylab.ylabel('y')
pylab.imshow(self.pmf_masked.T,**kwargs)
pylab.colorbar()
pylab.show()
评论列表
文章目录