From f2a9580d5c8428b80de918c5f84906cc0ea897c9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 6 Apr 2022 17:10:19 -0400 Subject: [PATCH] Guard against zero px width --- piker/ui/_curve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index 0e6f8211..00a4ca7a 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -408,7 +408,7 @@ class FastAppendCurve(pg.GraphicsObject): self._in_ds = False - elif should_ds: + elif should_ds and px_width: x_out, y_out = self.downsample( x_out, y_out,