Ticket #5359: test_range_from_slice.py

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