def __init__(self, frameSize=1024, imageWidth=1024, imageHeight=1024, zmin=-1, zmax=1, defaultValue=0.0):
PlotBase.__init__(self)
self._frameSize = frameSize
self._sink = None
# Raster state
self._imageData = numpy.ones((imageHeight, imageWidth)) * defaultValue
self._image = self._plot.imshow(self._imageData, extent=(0, 1, 1, 0))
self._zmin = zmin
self._zmax = zmax
norm = self._getNorm(self._zmin, self._zmax)
self._image.set_norm(norm)
self._row = 0
self._xdelta = None
# Maintain aspect ratio of image
self._aspect = float(imageHeight)/imageWidth
self._plot.set_aspect(self._aspect)
# Add a colorbar
self._colorbar = self._figure.colorbar(self._image)
评论列表
文章目录