diff --git a/artiq/applets/plot_xy_hist.py b/artiq/applets/plot_xy_hist.py index 82c06d778..7d42aeacc 100755 --- a/artiq/applets/plot_xy_hist.py +++ b/artiq/applets/plot_xy_hist.py @@ -124,11 +124,11 @@ class XYHistPlot(QtWidgets.QSplitter): return False return True - def data_changed(self, data, mods): + def data_changed(self, value, metadata, persist, mods): try: - xs = data[self.args.xs][1] - histogram_bins = data[self.args.histogram_bins][1] - histograms_counts = data[self.args.histograms_counts][1] + xs = value[self.args.xs] + histogram_bins = value[self.args.histogram_bins] + histograms_counts = value[self.args.histograms_counts] except KeyError: return if len(xs) != histograms_counts.shape[0]: