You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relates to an issue reported by the user, where they have loaded ascii data in which the x-values are descending. It proves impossible to work with some features of mantid such as plotting if you do this.
The fix is simply to ensure that the x-axis is ordered smallest to largest, and that the y and e data also follow this ordering.
Using the data files attached and the following script, you can replicate this problem. Not that the plots generated do not graph the data properly as it is not ordered as expected.
# Load the text data. Note, the erors bars are 0.0 due to the way they were processed earlier.
Load(Filename=DataDir+'polref8481.dat',OutputWorkspace='r8481',Unit='MomentumTransfer')
Load(Filename=DataDir+'polref8483.dat',OutputWorkspace='r8483',Unit='MomentumTransfer')
# Display the data to see what we're starting with
plotSpectrum([mtd['r8481'],mtd['r8483']],0)
# Notice that the default scaling is broken when the data has
Rebin(InputWorkspace='r8481',OutputWorkspace='r8481',Params='0.009,-0.04,0.034',PreserveEvents='0')
Rebin(InputWorkspace='r8483',OutputWorkspace='r8483',Params='0.027,-0.04,0.150',PreserveEvents='0')
The text was updated successfully, but these errors were encountered:
This relates to an issue reported by the user, where they have loaded ascii data in which the x-values are descending. It proves impossible to work with some features of mantid such as plotting if you do this.
The fix is simply to ensure that the x-axis is ordered smallest to largest, and that the y and e data also follow this ordering.
Using the data files attached and the following script, you can replicate this problem. Not that the plots generated do not graph the data properly as it is not ordered as expected.
The text was updated successfully, but these errors were encountered: