Ability to Clear Reference Waveforms
jdpatt opened this issue · 1 comments
jdpatt commented
Right now "Load Results" loads a previous run as a reference waveform. There is no mechanism to clear that waveform, you can only load another reference which will replace the previous reference. You must close/reopen the GUI to clear it. Add a menu action to clear the reference plots.
def clear_reference_clicked(self, info):
"""If the user has loaded previous "reference" data, clear that data from the plots."""
# Remove the data from the ArrayPlotContainer
for reference_plot in info.object.plotdata.list_data():
if "ref" in reference_plot:
try:
info.object.plotdata.del_data(reference_plot)
except KeyError:
pass
info.object.initialize_plots()
info.object.update_results()
capn-freako commented
Hi @jdpatt ,
Is it appropriate for me to jump in here and try to advance this one, or should I stay out of the way?
Thanks,
-db