From ff79854c464004d00b4e89a51b8c576eb60d103f Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Thu, 13 Jun 2024 11:10:49 +0800 Subject: [PATCH] plot_xy: fix missing x values handling Signed-off-by: Florian Agbuya --- artiq/applets/plot_xy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/applets/plot_xy.py b/artiq/applets/plot_xy.py index d7d67803b..df3dc2aaf 100755 --- a/artiq/applets/plot_xy.py +++ b/artiq/applets/plot_xy.py @@ -24,11 +24,11 @@ class XYPlot(pyqtgraph.PlotWidget): y = value[self.args.y] except KeyError: return - x = value.get(self.args.x, (False, None)) + x = value.get(self.args.x) if x is None: x = np.arange(len(y)) - error = value.get(self.args.error, (False, None)) - fit = value.get(self.args.fit, (False, None)) + error = value.get(self.args.error) + fit = value.get(self.args.fit) if not len(y) or len(y) != len(x): self.mismatch['X values'] = True