slaclab / pydm

Python Display Manager
http://slaclab.github.io/pydm/
Other
112 stars 77 forks source link

BasePlot.clear() doesn't work properly with new MultiAxisPlot. #895

Closed mattgibbs closed 2 years ago

mattgibbs commented 2 years ago

I was trying to clear out all curves on a PyDMWaveformPlot at runtime (using PyDMWaveformPlot.clearCurves(), which just calls BasePlot.clear()), and found that a frozen version of the old curves were left behind on the plot. It looks like the root cause is that MultiAxisPlot needs to re-implement clear() to properly remove all curves from all of its viewBoxes.

jbellister-slac commented 2 years ago

Thanks for reporting! Good news is a simple fix that I was testing for a different issue should fix this too. Will put up a PR shortly.