From fbbb414b9c11171c8d2a851596aa00478fd9bf3b Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Sun, 8 Feb 2026 17:36:50 +1000 Subject: [PATCH 1/2] Stabilize outside-label panel image comparison tolerance --- ultraplot/tests/test_subplots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultraplot/tests/test_subplots.py b/ultraplot/tests/test_subplots.py index 9025ffd54..031af2188 100644 --- a/ultraplot/tests/test_subplots.py +++ b/ultraplot/tests/test_subplots.py @@ -689,7 +689,7 @@ def test_non_rectangular_outside_labels_top(): uplt.close(fig) -@pytest.mark.mpl_image_compare +@pytest.mark.mpl_image_compare(tolerance=4) def test_outside_labels_with_panels(): fig, ax = uplt.subplots( ncols=2, From 827fc8d54f23ab46cd15a8d7034a14c29867553f Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Sun, 8 Feb 2026 17:40:52 +1000 Subject: [PATCH 2/2] Pin panel outside-label test to explicit share mode --- ultraplot/tests/test_subplots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ultraplot/tests/test_subplots.py b/ultraplot/tests/test_subplots.py index 031af2188..e6db1baed 100644 --- a/ultraplot/tests/test_subplots.py +++ b/ultraplot/tests/test_subplots.py @@ -689,11 +689,12 @@ def test_non_rectangular_outside_labels_top(): uplt.close(fig) -@pytest.mark.mpl_image_compare(tolerance=4) +@pytest.mark.mpl_image_compare def test_outside_labels_with_panels(): fig, ax = uplt.subplots( ncols=2, nrows=2, + share=True, ) # Create extreme case where we add a lot of panels # This should push the left labels further left