Skip to content

Commit

Permalink
FIX: Clear out the bars set on the archiver plot when clearCurves() i…
Browse files Browse the repository at this point in the history
…s called
  • Loading branch information
jbellister-slac committed Nov 4, 2022
1 parent deb3608 commit a8b425e
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 a8b425e

Please sign in to comment.