Skip to content

Commit

Permalink
Merge pull request #2443 from SasView/1329-meaningless-error-values-o…
Browse files Browse the repository at this point in the history
…n-theory-and-normalised-residuals

Add +/- 1 and 3 sigma lines on residual plots
  • Loading branch information
Wojciech Potrzebowski authored Feb 28, 2023
2 parents fba3521 + 4432a99 commit ed77650
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sas/qtgui/Plotting/Plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ def plot(self, data=None, color=None, marker=None, hide_error=False, transform=T
if data.show_yzero:
ax.axhline(color='black', linewidth=1)

# Display +/- 3 sigma and +/- 1 sigma lines for residual plots
if data.plot_role == data.ROLE_RESIDUAL:
ax.axhline(y=3, color='red', linestyle='-')
ax.axhline(y=-3, color='red', linestyle='-')
ax.axhline(y=1, color='gray', linestyle='--')
ax.axhline(y=-1, color='gray', linestyle='--')
# Update the list of data sets (plots) in chart
self.plot_dict[data.name] = data

Expand Down

0 comments on commit ed77650

Please sign in to comment.