From ac504069d226f1fcd20cc23abe1dce04723d20f4 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 12 Jul 2023 12:04:22 +0800 Subject: [PATCH] plot_hist: refactor data_changed --- artiq/applets/plot_hist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/applets/plot_hist.py b/artiq/applets/plot_hist.py index 9dbebcf4c..3be604930 100755 --- a/artiq/applets/plot_hist.py +++ b/artiq/applets/plot_hist.py @@ -15,13 +15,13 @@ class HistogramPlot(pyqtgraph.PlotWidget): self.timer.setSingleShot(True) self.timer.timeout.connect(self.length_warning) - def data_changed(self, data, mods, title): + def data_changed(self, value, metadata, persist, mods, title): try: - y = data[self.args.y][1] + y = value[self.args.y] if self.args.x is None: x = None else: - x = data[self.args.x][1] + x = value[self.args.x] except KeyError: return if x is None: