Skip to content

Commit

Permalink
Merge pull request #942 from jbellister-slac/clear_bars
Browse files Browse the repository at this point in the history
FIX: Clear out the bars set on the archiver plot when clearCurves() is called
  • Loading branch information
YektaY authored Nov 4, 2022
2 parents 2294642 + a8b425e commit 72111a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pydm/widgets/archiver_time_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@ def setTimeSpan(self, value):
return
self._time_span = value

def clearCurves(self) -> None:
""" Clear all curves from the plot """
for curve in self._curves:
# Need to clear out any bars from optimized data, then super() can handle the rest
if not curve.error_bar_needs_set:
curve.getViewBox().removeItem(curve.error_bar_item)
super().clearCurves()

def getCurves(self) -> List[str]:
"""
Dump and return the current list of curves and each curve's settings into a list
Expand Down

0 comments on commit 72111a2

Please sign in to comment.