From 9a799a58291f9eb5e0ab504e30f51d5a62fcd500 Mon Sep 17 00:00:00 2001 From: gepcel Date: Sun, 24 May 2026 20:29:53 +0800 Subject: [PATCH] Fix int/list has no size error, for bar plot of pd.Series --- ultraplot/axes/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultraplot/axes/plot.py b/ultraplot/axes/plot.py index 39e55a896..a1214fec0 100644 --- a/ultraplot/axes/plot.py +++ b/ultraplot/axes/plot.py @@ -3668,7 +3668,7 @@ def _inbounds_xylim(self, extents, x, y, **kwargs): return if self._name != "cartesian": return - if not x.size or not y.size: + if not getattr(x, "size", None) or not getattr(y, "size", None): return kwargs, vert = _get_vert(**kwargs) if not vert: