1 | from mantidsimple import * |
---|
2 | ###################################################################### |
---|
3 | #Python Script Generated by GeneratePythonScript Algorithm |
---|
4 | ###################################################################### |
---|
5 | CreateMDWorkspace(Dimensions='2',Extents='0,1,0,1',Names='A,B',Units='U,U',OutputWorkspace='A') |
---|
6 | FakeMDEventData(InputWorkspace='A',PeakParams='1000,0.5,0,0.25') |
---|
7 | SliceMD(InputWorkspace='A',AlignedDim0='A,0,1,10',AlignedDim1='B,0,1,10',OutputExtents='0,10,0,10',OutputBins='5,5',OutputWorkspace='B') |
---|
8 | |
---|
9 | sv = plotSlice('B') |
---|
10 | sv.setRebinMode(True, False) |
---|
11 | print sv.getColorScaleMin() |
---|
12 | print sv.getColorScaleMax() |
---|
13 | sv.setColorScaleAutoFull() |
---|
14 | print sv.getColorScaleMin() |
---|
15 | print sv.getColorScaleMax() |
---|
16 | |
---|