From 772a5f5f749a838ab547ad01ae6394916a1d2ed8 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Fri, 6 Feb 2026 10:21:40 +1000 Subject: [PATCH] Guard inset colorbar frame bounds --- ultraplot/axes/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultraplot/axes/base.py b/ultraplot/axes/base.py index 31e185ab3..11835af93 100644 --- a/ultraplot/axes/base.py +++ b/ultraplot/axes/base.py @@ -4510,7 +4510,7 @@ def _apply_inset_colorbar_layout( "inset": bounds_inset, "frame": bounds_frame, } - if frame is not None: + if frame is not None and hasattr(frame, "set_bounds"): frame.set_bounds(*bounds_frame)