From 9a2b08e1e9be260ed9d02df340c2cbaed8730153 Mon Sep 17 00:00:00 2001 From: clewis7 Date: Mon, 23 Feb 2026 16:07:52 -0500 Subject: [PATCH] fix bug --- fastplotlib/layouts/_rect.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fastplotlib/layouts/_rect.py b/fastplotlib/layouts/_rect.py index a67f32133..7ecd6ad8b 100644 --- a/fastplotlib/layouts/_rect.py +++ b/fastplotlib/layouts/_rect.py @@ -27,7 +27,6 @@ def _set(self, rect): raise ValueError( f"Invalid rect value < 0: {rect}\n All values must be non-negative." ) - if (rect[2:] <= 1).all(): # fractional bbox self._set_from_fract(rect) @@ -66,7 +65,6 @@ def _set_from_screen_space(self, rect): mult = np.array([cw, ch, cw, ch]) # for screen coords allow (x, y) = 1 or 0, but w, h must be > 1 # check that widths, heights are valid - # account for potential x and y offset rect_offset = rect.copy() rect_offset[0] -= x_offset @@ -82,7 +80,7 @@ def _set_from_screen_space(self, rect): ) self._rect_frac[:] = rect_offset / mult - self._rect_screen_space[:] = rect_offset + self._rect_screen_space[:] = rect @property def x(self) -> np.float64: