Skip to content

Commit

Permalink
fix Bragg plot line removal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
y8z committed Aug 14, 2024
1 parent c19f681 commit c7afb42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addie/plot/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ def remove_plot_1d(self, plot_key):
"""
if plot_key in self._lineDict:
try:
self.axes.lines.remove(self._lineDict[plot_key])
line = self.axes.lines[0]
line.remove()
except ValueError as r_error:
error_message = 'Unable to remove to 1D line %s (ID=%d) due to %s.' % (
str(self._lineDict[plot_key]), plot_key, str(r_error))
Expand Down

3 comments on commit c7afb42

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/603211"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/603251"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-qa has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/603252"

Please sign in to comment.