def plotImage( self ):
self.fig.clear()
self.axes = self.fig.add_axes( [0.0, 0.0, 1.0, 1.0] )
if "lowPass" in self.plotDict:
self.plotDict['image'] = ni.gaussian_filter( self.plotDict['image'], self.plotDict["lowPass"] )
clim = zorro.util.histClim( self.plotDict['image'], cutoff=1E-4 )
self.axes.hold(True)
mage = self.axes.imshow( self.plotDict['image'], vmin=clim[0], vmax=clim[1], interpolation='nearest',
cmap=self.plotDict['image_cmap'] )
if 'pixelsize' in self.plotDict:
zorro.util.plotScalebar( mage, self.plotDict['pixelsize'] )
if bool(self.plotDict['colorbar']):
self.fig.colorbar( mage, fraction=0.046, pad=0.04)
self.axes.set_axis_off()
self.axes.hold(False)
return self.printPlot( dpi_key=u'image_dpi' )
评论列表
文章目录