Skip to content

Commit

Permalink
Merge pull request #2338 from SasView/2337-sesans-residuals-plot-show…
Browse files Browse the repository at this point in the history
…n-in-q-space-rather-than-real-space

fixed sesans residuals plots to show in real space rather than q space
  • Loading branch information
Wojciech Potrzebowski authored Oct 30, 2022
2 parents 457eb17 + 185d7c4 commit 88df426
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sas/qtgui/Perspectives/Fitting/FittingUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,12 @@ def residualsData1D(reference_data, current_data, weights):
residuals.dxl = None
residuals.dxw = None
residuals.ytransform = 'y'
if reference_data.isSesans:
residuals.xtransform = 'x'
residuals.xaxis('\\rm{z} ', 'A')
# For latter scale changes
residuals.xaxis('\\rm{Q} ', 'A^{-1}')
else:
residuals.xaxis('\\rm{Q} ', 'A^{-1}')
residuals.yaxis('\\rm{Residuals} ', 'normalized')

return residuals
Expand Down

0 comments on commit 88df426

Please sign in to comment.