Ticket #8673 (closed: fixed)
Fix problems with SortXAxis
Reported by: | Owen Arnold | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Release 3.1 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Peter Peterson |
Description
SortXAxis doesn't work for Histogram workspaces, but it could be made to work with them by taking the start of each x interval as the index to sort the y and e components by. The existing behaviour for point data should remain the same.
Change History
comment:2 Changed 7 years ago by Owen Arnold
refs #8673. Test not required.
Changeset: 16fdc6313e811521b866535f5e5791afd8657e99
comment:3 Changed 7 years ago by Owen Arnold
Tester: The following shows this working:
testws = CreateWorkspace(DataX=[3,2,1,0], DataY=[1,2,3]) # Create a histogram workspace testws = SortXAxis(testws) plotSpectrum(testws, 0)
You should have a spectrum plotted with a straight line sloping down from 3 to 1 on the Y axis.
comment:4 Changed 7 years ago by Owen Arnold
- Status changed from inprogress to verify
- Resolution set to fixed
comment:5 Changed 7 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
Note: See
TracTickets for help on using
tickets.
refs #8673. Sort histogram workspaces.
Changeset: 62947a04559923a52940cc1c60b0ed6eba8f6188