From ba78d563b82262cdc00c6de4d73891aa6ffae0aa 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,