本文整理汇总了Python中uk.ac.diamond.scisoft.analysis.SDAPlotter.imagePlot方法的典型用法代码示例。如果您正苦于以下问题:Python SDAPlotter.imagePlot方法的具体用法?Python SDAPlotter.imagePlot怎么用?Python SDAPlotter.imagePlot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uk.ac.diamond.scisoft.analysis.SDAPlotter
的用法示例。
在下文中一共展示了SDAPlotter.imagePlot方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: imagePlot
# 需要导入模块: from uk.ac.diamond.scisoft.analysis import SDAPlotter [as 别名]
# 或者: from uk.ac.diamond.scisoft.analysis.SDAPlotter import imagePlot [as 别名]
def imagePlot(self, panel=None):
if panel is None:
panel=self.panel;
da=self.chData.cagetArrayUnsigned();
ds = IntegerDataset.createFromObject(da);
newds=ds.reshape([self.height, self.width]);
SDAPlotter.imagePlot(panel, newds);
示例2: imagePlot0
# 需要导入模块: from uk.ac.diamond.scisoft.analysis import SDAPlotter [as 别名]
# 或者: from uk.ac.diamond.scisoft.analysis.SDAPlotter import imagePlot [as 别名]
def imagePlot0(self, panel=None):
if panel is None:
panel=self.panel;
da=self.chData.cagetArrayByte()
ds = ByteDataset.createFromObject(da);
newds=ds.reshape([self.height, self.width]);
SDAPlotter.imagePlot(panel, newds);
示例3: display
# 需要导入模块: from uk.ac.diamond.scisoft.analysis import SDAPlotter [as 别名]
# 或者: from uk.ac.diamond.scisoft.analysis.SDAPlotter import imagePlot [as 别名]
def display(self,file=None):
if file==None:
file = self.getFullFileName()
# self.data.loadPilatusData(file)
self.data.load(PilatusTiffLoader(file));
dataset = self.data.getAxis(0);
if self.panel:
if self.logScale:
SDAPlotter.imagePlot(self.panel, DatasetUtils.lognorm(dataset)); #For RCP GUI
else:
SDAPlotter.imagePlot(self.panel, dataset); #For RCP GUI
else:
print "No panel set to display"
raise Exception("No panel_name set in %s. Set this or set %s.setAlive(False)" % (self.name,self.name));
示例4: imagePlot2
# 需要导入模块: from uk.ac.diamond.scisoft.analysis import SDAPlotter [as 别名]
# 或者: from uk.ac.diamond.scisoft.analysis.SDAPlotter import imagePlot [as 别名]
def imagePlot2(self, panel=None):
if panel is None:
panel=self.panel;
da=self.chData.cagetArrayByte();
#To convert from singed to unsigned
#method 2
da=[x&0xff for x in da]
#method 3
# ds1=array.array('B' [x&0xff for x in ds1] )
ds = IntegerDataset.createFromObject(da);
newds=ds.reshape([self.height, self.width]);
SDAPlotter.imagePlot(panel, newds);
示例5: plot_image
# 需要导入模块: from uk.ac.diamond.scisoft.analysis import SDAPlotter [as 别名]
# 或者: from uk.ac.diamond.scisoft.analysis.SDAPlotter import imagePlot [as 别名]
def plot_image(*arg, **kwarg):
_plotter.imagePlot(*arg, **kwarg)