Ticket #10743 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Normalize histogram to bin width not applied when plotted via "Drag and Drop"

Reported by: Ross Whitfield Owned by: Martyn Gigg
Priority: blocker Milestone: Release 3.3
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester: Ross Whitfield

Description (last modified by Ross Whitfield) (diff)

I believe this bug was introduced in #10639

With the Normalize histogram to bin width option on, the plots are not normalised when you drag and drop the workspace onto a plot. Giving the warning "You are overlaying distribution and non-distribution data!", which isn't true.

A quick example,

w=Load('CNCS_7860')
w=SumSpectra(w)
w=Rebin(w,10) then

'Plot Spectrum' then drag workspace w onto the same plot and they will have a factor of 10 different.

Also should the option Normalize histogram to bin width be turned off by default?

Change History

comment:1 Changed 6 years ago by Ross Whitfield

  • Description modified (diff)

comment:2 Changed 6 years ago by Nick Draper

  • Status changed from new to assigned

comment:3 Changed 6 years ago by Martyn Gigg

  • Status changed from assigned to inprogress

Fix drag-n-drop plotting to respect distribution flag.

Refs #10743

Changeset: 14221486f323f8a0d2443d422cbdc3264008b1bb

comment:4 Changed 6 years ago by Martyn Gigg

We did wonder whether the default should be on/off. A straw poll of some instrument scientists, #10669, suggested that on by default was better so we thought we would release to beta with it on by default and see what the feedback is.

comment:5 Changed 6 years ago by Martyn Gigg

  • Status changed from inprogress to verify
  • Resolution set to fixed

This is being verified as pull request #97.

comment:6 Changed 6 years ago by Ross Whitfield

  • Status changed from verify to verifying
  • Tester set to Ross Whitfield

comment:7 Changed 6 years ago by Ross Whitfield

  • Status changed from verifying to closed

Merge pull request #97 from mantidproject/bugfix/10743_drag_n_drop_plot_normalization

Fix drag-n-drop plotting to respect distribution flag.

Full changeset: 7dfa85eb17f7466cfd02804e263c03a7144a6bba

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11585

Note: See TracTickets for help on using tickets.