mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
210 stars 121 forks source link

Cut viewer representation getting re-drawn in sliceviewer #34983

Closed RichardWaiteSTFC closed 1 year ago

RichardWaiteSTFC commented 1 year ago

Describe the bug After toggling the cut viewer tool on/off, when the image is rebinned (e.g. by changing nbins) the cut representation is drawn again (even though the tool is not enabled). Then when the non-ortho view is enabled the cut tool plot and table widget opens on the right.

To Reproduce (1) Create ws

ws = CreateMDWorkspace(Dimensions='3', Extents='-3,3,-3,3,-3,3',
                   Names='H,K,L', Units='r.l.u.,r.l.u.,r.l.u.',
                   Frames='HKL,HKL,HKL',
                   SplitInto='2', SplitThreshold='10')
expt_info = CreateSampleWorkspace()
ws.addExperimentInfo(expt_info)
SetUB(ws, 1,1,2,90,90,120)

(2) Oepn in sliceviewer (3) Toggle cut tool on/off (4) Change number of bins

At this point the cut representation tool will be drawn on the colorfill plot

(5) Enable non-ortho view

At this point the 1D plot widget of the cut tool opens up on the right.

Expected behavior

Screenshots

Platform/Version (please complete the following information):

Additional context

mantid-builder commented 1 year ago

Fixed by #35069